Skip to content

Instantly share code, notes, and snippets.

@pretzelhands
Created June 25, 2020 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pretzelhands/7fb2c8de11509c101297e8e7cdb2f397 to your computer and use it in GitHub Desktop.
Save pretzelhands/7fb2c8de11509c101297e8e7cdb2f397 to your computer and use it in GitHub Desktop.
Allows you to read a notebag.json file
const Conf = require("conf");
const util = require("util");
const store = new Conf({
name: "notebag",
cwd: "ABSOLUTE_PATH_TO_FOLDER_CONTAINING_NOTEBAG_JSON",
encryptionKey: "YOUR_LICENSE_KEY",
});
console.log(
util.inspect(store.store, false, null)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment