npm-batch-install
Version:
Install dependencies in batches
41 lines (34 loc) • 830 B
JavaScript
;
/**
* [help description]
* @param {[type]} name [description]
* @param {[type]} description [description]
* @return {[type]} [description]
*/
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.help = help;
function help(_ref) {
let name = _ref.name;
let description = _ref.description;
return `
Usage: ${ name } [options] [packages]
${ description }
Where [options] include the options below as well \'npm install\' options
Options
-h --help output usage information
--version output version number
-B --batch-size=<num> the number of packages per batch
`;
}
const config = exports.config = {
alias: {
'version': 'v',
'help': 'h',
'batchSize': ['B', 'batch-size']
},
default: {
batchSize: 4
}
};