@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);

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i @kokkoro/jsondb

    Weekly Downloads

    3

    Version

    1.2.3

    License

    MIT

    Unpacked Size

    5.56 kB

    Total Files

    5

    Last publish

    Collaborators

    • xueelf
    • dc_yuki