Initialize

Expanded method

const DataManager = require('dubnium')
const db = new DataManager('dirPath','ext')
/*db.dir() // if you want Dubnium to create a folder for you*/

One-line method

const db = new (require("dubnium"))("./folder")
/*db.dir() // if you want Dubnium to create a folder for you*/

You can initialize as many databases as you want

Parameters

Name
About
Type
Required

dirPath

The path to the directory to store Records.

String

ext

Custom file extension (Default: json)

String

Last updated