@allegiant/jsonstore
v0.0.8
Published
Simple disk based json document storage
Downloads
14
Readme
jsonstore
Simple disk based json document storage. Used in some examples in the allegiant app framework.
There be 🐲 here! The API and functionality are being cemented, anything before a 1.0.0 release is subject to change.
Installation
npm install @allegiant/jsonstore --save
Usage
const { JSONStore } = require('@allegiant/jsonstore');
const store = new JSONStore();
store.update('foo', true);
store.get('foo'); // true
store.destroy('foo') // undefined and destroys the data kept in foo
Copyright & License
Copyright © 2017 Allegiant. Distributed under the terms of the MIT License, see LICENSE