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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    181
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    181
  • 0.0.1
    59

Package Sidebar

Install

npm i json-store

Weekly Downloads

142

Version

1.0.0

License

MIT

Unpacked Size

2.27 kB

Total Files

4

Last publish

Collaborators

  • juliangruber