0.3.2 • Published 6 years ago

enormis v0.3.2

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
6 years ago

Enormis

Simple modern MongoDB driver

Use MongoDB like this:

const { Client } = require('enormis')

async function getUsers() {
    const client = await Client('mongodb://localhost:27017');
    const users = await client.test.user.find({});
    client.close();
    return users;
}

Instead of:

const { MongoClient } = require('mongodb')

async function getUsers() {
    const client = await MongoClient.connect('mongodb://localhost:27017');
    const users = await client.db('test').collection('user').find({}).toArray();
    client.close();
    return users;
}
0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago