mongodb-document-bsonfy
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