@kokkoro/jsondb
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

jsondb

Local JSON database (◕ω<)☆

const { Database } = require('@kokkoro/jsondb');

const db = new Database('kokkoro'); // created "kokkoro/index.json"

console.log(db); // JSON file => {}
db.message = 'hello world'; // JSON file => { "message": "hello world" }

setInterval(() => {
  // modify local JSON file to support hot update
  console.log(db.message);
}, 2000);

Readme

Keywords

Package Sidebar

Install

npm i @kokkoro/jsondb

Weekly Downloads

1

Version

1.2.3

License

MIT

Unpacked Size

5.56 kB

Total Files

5

Last publish

Collaborators

  • xueelf
  • dc_yuki