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
  • Install
  • Initialize
  • Make your first Record
  • Delete a Record
  • Modify a Record
  • Get Record
  • Check out our full docs for more in-depth explanations and code

Was this helpful?

  1. Reference

Quick Start

We recommend you read the full docs, but this will get you started with the basics.

PreviousInstallNextAPI

Last updated 2 years ago

Was this helpful?

Install

npm i dubnium

Initialize

You can initialize as many databases as you want

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

Make your first Record

db.create('tag', data)

Delete a Record

db.delete('tag')

Modify a Record

db.setValue("tag","key","new value")

For non-JSON, use

db.setTag("old_tag","new_tag")

Get Record

db.get('tag')
db.getFromValue('key','value',onlyFirst)
db.getAll(returnType)

getFromValue is JSON only

Check out our full docs for more in-depth explanations and code

db.overwrite()