Simple json db for node
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
index.js
package.json
test.js

README.md

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