Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/isayme/mongodb-document-bsonfy
bsonfy mongodb documents in shell like what mongoexport does
https://github.com/isayme/mongodb-document-bsonfy
Last synced: 13 days ago
JSON representation
bsonfy mongodb documents in shell like what mongoexport does
- Host: GitHub
- URL: https://github.com/isayme/mongodb-document-bsonfy
- Owner: isayme
- License: mit
- Created: 2017-06-07T04:59:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-26T10:45:57.000Z (over 7 years ago)
- Last Synced: 2024-10-11T17:18:49.199Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## mongodb-document-bsonfy
[![Build Status](https://travis-ci.org/isayme/mongodb-document-bsonfy.svg?branch=master)](https://travis-ci.org/isayme/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
## Defects
### NumberInt not support
we can't distinguish a number from `double` and `int` in mongo shell#### refers
[NumberInt object wrapper is not displayed](https://jira.mongodb.org/browse/SERVER-5234)[Shell doesn't re-save retrieved integers in an array as integers (converted to 64-bit float)](https://jira.mongodb.org/browse/SERVER-5424)