Skip to content

A script to populate mongo collections from .csv files

Notifications You must be signed in to change notification settings

dwhelan/mongo-import

Repository files navigation

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

About

A script to populate mongo collections from .csv files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published