-
-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
I was looking for a library that would keep my state consistent, this is my choice, i'm gonna recommend my friend using this library too, tsym.
Initial state:
{
"admasd": {
"12831": true
}
}
await db.push('/acasd/-12831123123', true);
Final state:
{
"admasd": {
"12831": true,
"-12831123123": true
},
"acasd": {
"-12831123123": true
}
}
Perfect, just like i expected.
"use strict";
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
const { JsonDB, Config } = require('node-json-db');
const db = new JsonDB(new Config("settings", true, false, '/'));
vanesca88, JGantts, RedCrafter07 and Kenshiin13brolnickij and Kenshiin13
Metadata
Metadata
Assignees
Labels
No labels