mit.db/test.js

12 lines
209 B
JavaScript
Raw Normal View History

2023-02-06 10:15:19 +01:00
const MitDB = require('./build/index.js')
var db = new MitDB('file.json')
async function run () {
await db.set('ciao', 'hello')
await db.set('arrivederci', 'bye')
console.log(db.size())
}
run()