Simple json db for node

npm install json-store
1 downloads in the last day
5 downloads in the last week
28 downloads in the last month


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


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
npm loves you