Dubnium
v3
v3
  • Overview
  • API
    • Initialize
    • Manage
    • Get
    • Edit
    • Search
    • Miscellaneous
    • Middleware
    • Versioning
  • TEMPLATES
    • JSON
    • String
  • EXTENSIONS
    • Setup
    • Create
    • Find
  • OTHER
  • CLI
  • Events
  • Update Log
  • EXTERNAL LINKS
    • Need more help?
    • Report an Issue
Powered by GitBook
On this page
  • Install
  • Download it from npm
  • Or download it from GitHub
  • Initialize
  • Make your first Record
  • Get a Record
  • Delete a Record
  • Modify a Record

Was this helpful?

Overview

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

NextInitialize

Last updated 1 year ago

Was this helpful?

Install

Dubnium is available on npm or GitHub (requires Node.js) and is available for CommonJS and ECMAScript modules.

Download it from npm

We strongly recommend using npm.

npm i dubnium

Check out our .

Or download it from GitHub

Initialize

const Dubnium = require('dubnium') 
const db = new Dubnium('dirPath','ext')
import Dubnium from 'dubnium'
const db = new Dubnium('dirPath','ext')

Make your first Record

db.create('tag', content)

Get a Record

db.get('tag')
db.getAll()

Delete a Record

db.get('tag').delete()

Modify a Record

This will overwrite your record with the content provided.

db.get('tag').edit("new_content")
db.get("old_tag").setTag("new_tag")

Check out our full docs for more API methods and in-depth explanations.

npm page
https://github.com/coolstone-tech/dubnium