Skip to content

rooftopsparrow/json-store

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple json db for node

Resources

Stars

Watchers

Forks

Packages

No packages published