json-store

1.0.0 • Public • Published

JSONStore

Simple json store for node. Saves changes on disk immediately and blocking, so only relevant for cli applications and such.

Usage

var JSONStore = require('json-store');
var db = JSONStore('./index.json');
 
db.set('foo', 'bar');
db.get('foo');                // bar
 
db.set('obj', {foo: 'bar'});
db.get('obj').foo             // bar

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i json-store

      Weekly Downloads

      129

      Version

      1.0.0

      License

      MIT

      Unpacked Size

      2.27 kB

      Total Files

      4

      Last publish

      Collaborators

      • juliangruber