@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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.8
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.8
    1
  • 0.0.7
    0
  • 0.0.6
    0
  • 0.0.5
    0

Package Sidebar

Install

npm i @allegiant/jsonstore

Weekly Downloads

1

Version

0.0.8

License

MIT

Last publish

Collaborators

  • gabrielcsapo
  • echopoint