1.1.0 • Published 5 years ago

aramodule2 v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Build StatusBCH compliance

Aramodule

Install command:

npm install aramodule2 --save

connecting and using mongodb

Setup

const dsn = "mongodb://localhost:27017/test"; const db = require('aramodule').mongoInit(dsn, 'test');

Get data

const data = await db.get();

Insert data

var ob = { username: "ara", password: "password" };

await db.insert(ob);

Reset data

await db.reset();