1.0.0 • Published 7 years ago

mongodb-document-bsonfy v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

mongodb-document-bsonfy

Build Status

A shell function that would bsonfy mongodb documents like what mongoexport does.

How To Use

Do not require this module in node, use it in a mongo shell

// exporter-example.js
// db.tests.insert({ ... })

load('./lib/bsonfy.js') // path to bsonfy.js
db.tests.find({}).forEach(function (doc) {
  print(bsonfy(doc))
})

mongodb exporter-example.js