Skip to content

Nodejs script that takes .bson files from mongodumps and converts the data to a csv file executing bsondump.

License

Notifications You must be signed in to change notification settings

ProjectProvenance/bson2csv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bson2csv

Gitter chat

whenever those tricky .bson files need to go csv :)

Sometimes its you just want something to work without a lot of effort :), this was my case, I had .bson files of my mongodump and I had to send them over to a non-tech team member who needed it in csv.

So as I couldn't find anything, I present bson2csv, a quick coffee / js file that takes command-line arguments that turn those .bson files into csv.

Run the script and give to arguments, the name of your bson file path/name and the file path/name to your csv.

$ coffee bson2csv.coffee --bf ~/file.bson --cf ~/file.csv

You can also see the json data on the terminal by writing setting the log at the end

$ coffee bson2csv.coffee --bf ~/file.bson --cf ~/file.csv --log true

About

Nodejs script that takes .bson files from mongodumps and converts the data to a csv file executing bsondump.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published