We recommend you read the full docs, but this will get you started with the basics.
Last updated 2 years ago
Was this helpful?
npm i dubnium
You can initialize as many databases as you want
const db = new (require("dubnium"))("./folder",'custom file extension') /*db.dir() // if you want Dubnium to create a folder for you*/
db.create('tag', data)
db.delete('tag')
db.setValue("tag","key","new value")
For non-JSON, use
db.setTag("old_tag","new_tag")
db.get('tag')
db.getFromValue('key','value',onlyFirst)
db.getAll(returnType)
getFromValue is JSON only
getFromValue
db.overwrite()