@jkob/mo
TypeScript icon, indicating that this package has built-in type declarations

3.0.4 • Public • Published

MongoDB Node wrapper

Usage:

const { Mo } = require('@jkob/mo');

const mo = new Mo({
	uri: 'mongodb://user:[pass]@localhost:27017'
	databaseName: '',
	password: '', // optional
	collections: ['', ''] // names of collections in database
});

await mo.connect();
// do things
await mo.close();

Readme

Keywords

none

Package Sidebar

Install

npm i @jkob/mo

Weekly Downloads

0

Version

3.0.4

License

MIT

Unpacked Size

6.52 kB

Total Files

10

Last publish

Collaborators

  • jkob