Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

mongodown

2.0.0 • Public • Published

MongoDOWN

A drop-in replacement for LevelDOWN that runs on MongoDB. Can be used as a back-end for LevelUP rather than an actual LevelDB store.

Build Status

Installation

npm install mongodown

Example

var levelup = require('levelup')
var mongodown = require('mongodown')
 
// MongoDB Collection name defaults to 'mongodown'
var db = levelup(mongodown('localhost/my-database'))
 
// OR pass custom MongoDB collection name
db = levelup(mongodown('localhost/my-database'), { collection:'People_C' })
 
db.put('name', 'Yuri Irsenovich Kim')
db.put('dob', '16 February 1941')
db.put('spouse', 'Kim Young-sook')
db.put('occupation', 'Clown')
 
db.readStream()
  .on('data', console.log)
  .on('close', function () { console.log('Show\'s over folks!') })

Limitations

MongoDOWN does not support iterator snapshots

License

MIT

Install

npm i mongodown

DownloadsWeekly Downloads

83

Version

2.0.0

License

MIT

Unpacked Size

15 kB

Total Files

7

Last publish

Collaborators

  • avatar
  • avatar