1.1.0 • Published 8 months ago

json-store-typed v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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

Original Source by Julian Gruber

1.1.0

8 months ago

1.2.2

8 months ago

1.2.1

8 months ago

1.2.0

8 months ago