Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 716 Bytes

README.md

File metadata and controls

58 lines (37 loc) · 716 Bytes

mongo-import

This repo provides a script you can use to easily import csv files into mongodb.

Add mongo-import to your project

Add mongo-import to your package.json file as a development dependency.

npm install mongo-import --save-dev

or

yarn add mongo-import --dev

Add import scripts to you project

Update your package.json as follows:

  ...

  "scripts": {
    ...

    "import": mongo-import",

    ...
  },

  ...

Run the script

The script assumes that the .csv files you want to import are in your local tables folder.

npm run mongo-import

or

yarn mongo-import

License

  • To be added

Roadmap

  • To be added

Known Issues

  • To be added