key-mongo

1.1.4 • Public • Published

key-mongo

Easy to use mongodb wrapper just like Map()

Installing

Yarn: yarn add key-mongo
Npm: npm install key-mongo

Example usage:

const { KeyMongo } = require('key-mongo');
const KeyClient = new KeyMongo({
    dbName: 'test',
    dbUrl: 'yOuR nIcE mOnGoDbUrL',
    collectionName: 'currency'
})
/** when already connected to database you can remove timeout */
setTimeout(() => {
    KeyClient.set('user_1', { money: 20, premium: true } )
}, 3000)

Package Sidebar

Install

npm i key-mongo

Weekly Downloads

2

Version

1.1.4

License

GPL-3.0

Unpacked Size

49.3 kB

Total Files

10

Last publish

Collaborators

  • kagchi