mongoose-seed-csv
mongoose-seed-csv is a wrapper for mongoose-seed that will parse data from csv files
Usage
const seeder = ;seeder;
Methods
seeder.populateFromCSV(csvEntryArray, [csvParseOptions], [callback])
- csvEntryArray: [string(filepath) || CSV_Entry]
- you can you both filepath and CSV_Entry Object and even mixed
- csvParseOptions
- see: options for cvs-parse
- +
parseDeep
: if true, the parser try to parse each value as JSON
- callback
- same callback as in mongoose-seed's populateModels
CSV_EntryObject
/** * @typedef * @property * @property * @property */