npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-note

v0.2.0

Published

Evernote wrapper

Downloads

5

Readme

Build Status

node-note

Evernote wrapper.

Install

$ npm install --save node-note

Configuration

You need Evernote API Key and config.json, like this.

{
  "develop": {
    "token": "DEVELOPER_TOKEN_FOR_SANDBOX"
  },
  "production": {
    "token": "DEVELOPER_TOKEN_FOR_PRODUCTION"
  }
}

Usage

var config = require('./config.json');
var nodeNote = require('node-note');

var evernote = new nodeNote({token: config.develop.token, sandbox: true});

// Create new note
var options = {
  title: 'New Note created by node-note',
  body: 'Here is the Evernote logo',
  file: './ev-logo.png'
}

evernote.createNote(options, function (createdNote) {
  console.log('Create new note ' + createdNote.guid);
});

// Delete note
var options = {
  title: 'note title'
}

evernote.deleteNote(options, function (deletedNote) {
  console.log('Delete note ' + deletedNote.guid);
});

API

evernote.createNote(options, callback)

Create new note.

options

title

Required Type: String

Note title.

body

Type: String

Note body.

notebookName

Type: String

Notebook name of target.

file

Type: String

Attachement file.

tag

Type: Array

List of the tag name.

author

Type: String

The author of the content of the note.

url

Type: String

The original location where the resource was hosted.

width

Type: String ex: 500px

Centering note contents by width value.

callback(createdNote)

Type: Function

createdNote

Type: Object

Return created note. Represents a single note in the user's account.

evernote.deleteNote(options, callback)

Delete note.

options

Required title or guid field. If you can set both field, set both field.

title

Type: String

Note title.

guid

Type: String

Note guid.

callback(deletedNote)

Type: Function

deletedNote

Type: Object

Return deleted note. Represents a single note in the user's account.

evernote.getNoteMetadata(options, callback)

Get note metadata.

options

word

Type: String

If present, a search query string that will filter the set of notes to be returned.

maxNotes

Type: Number

The mximum notes to return in this query.

callback(noteMetadataList)

Type: Function

noteMetadataList

Type: List

Return the metadata list of notes that match the criteria.

evernote.getNote(options, callback)

Get note.

options

guid

Required Type: String

The GUID of the note to be retrieved.

withContent

Type: Bool

If true, the note will include the ENML contents of its 'content' field.

withRecouce

Type: Bool

If true, any Resource elements in this Note will include the binary contents of their 'data' field's body.

callback(note)

Type: Function

note

Type: Object

Returns the current state of the note in the service.

evenote.restoreNote(options, callback)

Restore note in trash.

options

Required title or guid field. If you can set both field, set both field.

title

Type: String

note's title.

guid

Type: String

note's guid.

callback(restoredNote)

Type: Function

restoredNote

Type: Object

Return restored note.

evernote.updateNote(options, callback)

Submit a set of changes to a note to the service.

options

title

Required Type: String

Note title.

newTitle

Type: String

New note title.

body

Type: String

Note body.

tag

Type: Array

List of the tag name.

width

Type: String ex: 500px

Centering note contents by width value.

callback(note)

Type: Function

note

Type: Object

Return the metadata (no contents) for the Note on the server after the update.

evernote.expungeNote(guid, callback)

Permanently removes a Note, and all of its Resources, from the service.

options

guid

Required Type: String

Note guid.

callback(sequenceNum)

Type: Function

sequenceNum

Type: Number

The Update Sequence Number for this change within the account.

evernote.createNotebook(options, callback)

Create new notebook.

options

name

Required Type: String

Notebook name.

callback(createdNotebook)

Type: Function

createdNotebook

Type: Object

evernote.expungeNotebook(guid, callback)

Permanently removes a Notebook from the service.

guid

Type: String

Note guid.

callback(sequenceNum)

Type: Function

sequencenum

Type: Number

The Update Sequence Number for this change within the account.

LICENSE

MIT