Evernote to Vinyl
Run a query against an Evernote account and convert the returned notes to the Vinyl absract file format. This allows Evernote notes to be used in Gulp pipelines.
Using the Module
The module provides a
src() method that can be used to begin a Gulp pipeline in much the same way that
gulp.src() is normally used:
var evernote = ;gulp
The query parameter uses the Evernote Search Grammar. So an example might be:
notebook:"Mark Birbeck's Blog" updated:month-1
which would retrieve all notes that have been updated in the last month, from the notebook called "Mark Birbeck's Blog".
The configuration parameter contains a developer token and a value to indicate whether this token applies to the sandbox testing environment, or to the normal Evernote area. An example might be:
An example might be to:
- take notes from a particular folder;
- remove any Evernote Markup (ENML);
- treat the remaining text as Markdown and convert to HTML, and then;
- push to S3:
var gulp = ;var es = ;var config = ;var Buffer = Buffer;var evernote = ;var marked = ;var s3 = ;gulp;
This could be run as a cron job on Heroku to provide a backup of notes.