0.1.18 • Published 2 years ago
mndo.db v0.1.18
Description
Creating databases become easy this days, just use mndo.db package and create your dream database.
Installation
Npm:
npm install mndo.db
Yarn:
yarn add mndo.db
Steps
- Import it
import mndoDB from 'mndo.db'
- create it
const db = new mndoDB.createDatabase(
{
"file": "mndo.database.json",
"name": "mndo.users-database"
})
- add a thing to the database
db.add("key", "value")
- and use it any were!
db.get("key")
Things to do with the database
command | description | input type | default value | inputs |
---|---|---|---|---|
.add | add a new element to the database | string | null | key, value |
.remove | remove an element from the database | string | null | key |
.get | get an element value from the database | string | null | key |
.getAll | get all the elements in the database | string | null | No inputs |