Quick Start
We recommend you read the full docs, but this will get you started with the basics.
Install
npm i dubnium
Initialize
const db = new (require("dubnium"))("./folder",'custom file extension')
/*db.dir() // if you want Dubnium to create a folder for you*/
Make your first Record
db.create('tag', data)
Delete a Record
db.delete('tag')
Modify a Record
db.setValue("tag","key","new value")
For non-JSON, use db.overwrite()
Get Record
db.get('tag')
db.getFromValue('key','value',onlyFirst)
getFromValue
is JSON only
Check out our full docs for more in-depth explanations and code
Last updated
Was this helpful?