mit.db/test.js
2023-02-06 10:15:19 +01:00

12 lines
No EOL
209 B
JavaScript

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()