0.3.2 • Published 7 years ago

enormis v0.3.2

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
7 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

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.4

9 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago