1.0.3 • Published 5 years ago

mongotojson v1.0.3

Weekly downloads
4
License
MIT
Repository
-
Last release
5 years ago

Export the mongodb collection to csv or json

Usage

 $ npm install mongotojson --save
var convert = require('mongotojson');
var options = {
	database: 'product', // required
	collection: 'users', // required
	fields: ['name','address'], // optional
	output: './output/users.csv or .json', // required
};
convert.export(options, function (err, success) {
	console.log(err);
	console.log(success);
});
``