Last updated 2 years ago
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")
import Dubnium from 'dubnium' const db = new Dubnium('dirPath','ext', useConfig)
You can initialize as many databases as you want
dirPath
The path to the directory to store Records.
string
ext
Custom file extension (default: json)
json
useConfig
Use config file (default: true)
true
bool