Skip to content

StephenNeelDurai/mongotojson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
});
``

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published