UNPKG

mongoose-data-seed

Version:

Seed mongodb with data using mongoose models

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