1.1.4 • Published 3 years ago

key-mongo v1.1.4

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
3 years ago

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)