Sync a document from Bear Writer's DB to a file on disk
I really like Bear Writer's interface, but it stores all its notes in an SQLite DB. I spent ages rigging up a nice Markdown + Webpack pipeline for a React blog before I realised this, and rather than admit my mistake, potentially pushing forward to concentrate on the content rather than procrastinating on the pipeline, I built this.
Grab the Document ID from Bear, then run:
yarn add sqlite3 untildify node sync-bear.js DOC-ID path/to/file.js