Dubnium
v1
v1
  • Newest version
  • Reference
    • Install
    • Quick Start
    • API
      • Initialize
      • Create and Delete
      • Get
      • Modify
      • Other
    • CLI
      • Install CLI
      • CLI Use
      • CLI Commands
    • Events
    • returnType
    • License
  • Update Log
  • Discord
  • NPM Page
  • Support the Project
  • Get help & submit feedback
Powered by GitBook
On this page
  • Expanded method
  • One-line method
  • Parameters

Was this helpful?

  1. Reference
  2. API

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

PreviousAPINextCreate and Delete

Last updated 2 years ago

Was this helpful?