1.0.4 • Published 6 years ago

mungu v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

mungu

Dead simple Mongo DB

npm i --save mungu
const url = '***'
const dbName = '***'
const collectionName = '***'

async function test(){
  const db = await mungu({
    url,
    dbName,
    collectionName,
  })
  await db.set('hi',{hi:'deee'})

  const d = await db.get('hi')
  console.log(d)

  await db.del('hi')

  const d2 = await db.get('hi')
  console.log(d2)
}

This lib is very simple. It never throws errors (just returns null from get if there is no document)

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago