Skip to content

joryhatton/csv-to-mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSV to MongoDB Importer

A simple command line utility to quickly and easily import CSV files directly into MongoDB.

Usage

install it with:

npm install -g csv-to-mongodb

then run it with:

csv-to-mongodb

you will need the following data:

  1. Your MongoDB primary connection string.
  2. The path to your CSV file.
  3. The name of the collection.
  4. A unique identifier if you want to overwrite existing documents.