mndo.db
v0.1.18
Published
Creating databases become easy this days, just use mndo.db package and create your dream database.
Readme
Description
Creating databases become easy this days, just use mndo.db package and create your dream database.
Installation
Npm:
npm install mndo.dbYarn:
yarn add mndo.dbSteps
- 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 |
