json-store-typed
v1.1.0
Published
Simple json db for node
Downloads
204
Readme
json-store-typed
=========
Simple json store for node. Saves changes on disk immediately and blocking, so only relevant for cli applications and such.
Typed Version
Installation
npm i json-store-typed
Usage
import jsonStore from "json-store-typed";
let db = jsonStore('./index.json');
db.set('foo', 'bar');
db.get('foo'); // bar
db.set('obj', {foo: 'bar'});
db.get('obj').foo // bar