Initialize
How to get started with Dubnium.
const Dubnium = require('dubnium')
const db = new Dubnium('dirPath', 'ext', options)
const db = new (require("dubnium"))("dir", "ext", options)
Parameters
Name
About
Type
Required
dirPath
The path to the directory to store Records.
String
ext
Custom file extension (default: json
)
String
options
Options
Object
options.name
Database name
String
options.force
Enable force overwriting of a preexisting Record.
Boolean
options.preserveConfig
Set to false
to not overwrite the config file
Boolean
options.requireRoot
Functions to require root access to run
Array
options.template
Require all new JSON Records to follow a template, or Dubnium will throw an error
Last updated
Was this helpful?