@janast1975/free-db
v1.0.3
Published
For all developers who do not have a budget for a public database (Attenton, this database is based on trust. At the slightest problem I delete the project).
Downloads
2
Readme
free-db
Exemple
// test.js
const FreeDB = require('@janast1975/free-db');
const db = new FreeDB();
(async () => {
console.log(await db.set('test', 'Carré'));
// 'Carré'
console.log(await db.get('test'));
// Carré
})();
Always use await
Other
await <db>.set(#KEY, #VALUE) or await <db>.set(#KEY, #VALUE, #PATH)
/**
* @param {string} KEY => 'test'
* @param {string} VALUE => '{text: 'i'am a test'}'
* @param {string} PATH => 'lol.haha' => {lol:{haha:<VALUE>}}
**/