mongodb-document-bsonfy

    1.0.0 • Public • Published

    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

    Install

    npm i mongodb-document-bsonfy

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • isayme