0.4.4 • Published 2 years ago

primate-json-store v0.4.4

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
2 years ago

Primate JSON store

This store module facades JSON files, allowing you to work with their structured data.

Installing

npm install primate-json-store

Using

Import the module and instance a store with name (JSON filename) and path (path to directory).

import JSONStore from "primate-json-store";
export default new JSONStore({"name": "app.json", "path": "/tmp"});

A collection in this store is a keyed subobject.

{
  "post": [
    {"_id": "1", "title": "Last day at school", "text": "Today was ..."}
  ],
  "comment": [
    {"_id": "1", "post_id": "1", "text": "Very interesting read!"}
  ]
}

License

BSD-3-Clause

0.4.4

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago