npm

@allegiant/jsonstore

0.0.8 • Public • Published

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.

Npm Version Build Status Coverage Status

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

Availble via npm or github.

Readme

Keywords

none

Package Sidebar

Install

npm i @allegiant/jsonstore

Weekly Downloads

4

Version

0.0.8

License

MIT

Last publish

Collaborators

  • gabrielcsapo
  • echopoint