1.0.4 • Published 5 years ago

mungu v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
5 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

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago