Initialize
const { Dubnium } = require('dubnium') // const dubnium = require('dubnium') works as well.
const db = new Dubnium('dirPath','ext', useConfig)
or
const db = new (require("dubnium"))("dirPath","ext")
Parameters
Name
About
Type
Required
dirPath
The path to the directory to store Records.
string
ext
Custom file extension (default: json
)
string
useConfig
Use config file (default: true
)
bool
Last updated
Was this helpful?