1.2.3 • Published 2 years ago

@kokkoro/jsondb v1.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

2 years ago

1.2.2

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

3 years ago

1.2.1

2 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago