cmd-line flags and package.json for automatic npm packages