json-store-typed
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i json-store-typed

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

6.45 kB

Total Files

9

Last publish

Collaborators

  • nekitori17