1.2.23 • Published 3 years ago
nesbros v1.2.23
Nesbros
A Powerful Package
Installation
$ npm install nesbros
Table of contents
Useages
Database
Create New File With Name: db.js
//importing
const { Database } = require("nesbros");
const client = require("./index.js"); // Paste this on index.js `module.exports = client;`
cons db = new Database(client, {
url: "Mongoose Uri"
});
// must paste this on db.js
example
const db = require("./db.js");
let test = "test1"
db.set("test", test)
Methods
.set
// saves data to database
db.set("key", "value");
.get
// gets value from key
db.get("key"); // returns => value
.has
// returns boolean
db.has("key"); // returns => true
.delete
// deletes data
db.delete("key");
// checking for data
db.has("key"); // returns => false
2.2.1
3 years ago
2.2.0
3 years ago
2.2.2
3 years ago
1.2.23
3 years ago
1.2.22
3 years ago
1.2.6
3 years ago
1.15.0
3 years ago
1.14.0
3 years ago
1.18.0
3 years ago
1.17.0
3 years ago
1.2.4
3 years ago
1.2.3
3 years ago
1.2.2
3 years ago
1.13.0
3 years ago
1.12.0
3 years ago
1.1.1
3 years ago
1.9.0
3 years ago
1.11.0
3 years ago
1.10.0
3 years ago
1.8.0
3 years ago
1.7.0
3 years ago
1.6.0
3 years ago
1.5.0
3 years ago
1.4.0
3 years ago
1.3.0
3 years ago
1.2.0
3 years ago
1.1.0
3 years ago
1.0.0
3 years ago