-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from cmckni3/master
Upgrade Evernote SDK
- Loading branch information
Showing
8 changed files
with
787 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# get token at https://www.evernote.com/api/DeveloperToken.action | ||
EVERNOTE_TOKEN= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/notes | ||
/node_modules | ||
tmp/ | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
dotenv = require('dotenv').config() | ||
|
||
debug = require('debug')('evernote-markdown:client') | ||
|
||
Evernote2Markdown = require './src/evernote' | ||
# get token at https://www.evernote.com/api/DeveloperToken.action | ||
token = 'PUT YOUR TOKEN HERE' | ||
converter = new Evernote2Markdown token | ||
converter.convertNotes() | ||
|
||
token = process.env.EVERNOTE_TOKEN | ||
|
||
new Promise (resolve, reject) -> | ||
converter = new Evernote2Markdown token | ||
converter.convertNotes() | ||
.then(() -> | ||
console.log 'complete' | ||
process.exit 0 | ||
).catch (err) -> | ||
console.log 'Error', err | ||
process.exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.