exportmongodatabase
v1.0.2
Published
mongoexport can be used to export whole mongo database
Downloads
7
Maintainers
Readme
exportmongodatabase
Installation
npm i exportmongodatabase
Usage
const exportDb = require('exportmongodatabase');
exportDb.exportDataBase("mongodb://localhost:27017/PMS");
Parameters
DataBase connection url : String
example : "mongodb://localhost:27017/PMS" example : "mongodb://username:password@host:port/dbname"
Other
This will create a folder of database in your project folder name and all the collections will be exported by there name in csv file.