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

1.1.2 • Public • Published

JSON-syncDB

  • simple solution for database for very small projects
  • works on base of recursive Proxy() watching Object for changes, then changes writes into file

Examples

Example of usage

const { JSONDB } = require("json-syncdb")
var db = new JSONDB("./data.json")

db.data.users = []
db.data.users.push({name: "arnold", age: 22})

Readme

Keywords

Package Sidebar

Install

npm i json-syncdb

Weekly Downloads

1

Version

1.1.2

License

MIT

Unpacked Size

3.84 kB

Total Files

5

Last publish

Collaborators

  • czmatyaszero