UNPKG

mongoose-data-seed

Version:

Seed mongodb with data using mongoose models

17 lines (13 loc) 346 B
import { getOptions } from './options'; import help from './help'; import run from './run'; /** * mongoose-data-seed run command * @param {stringp[]} argv cli arguments * @return {Promise} */ export default async argv => { const { helpWanted, ...options } = getOptions(argv); if (helpWanted) return help(); return run(options); };