pm-install
This file
Path
examples/pm-install
21 lines · 389 bytes
Last changed by
add git-style executable subcommand support. Closes #94TJ Holowaychukbefore adoption21b4169
History of this fileTake it
1#!/usr/bin/env node23var program = require('..');45program6 .option('-f, --force', 'force installation')7 .parse(process.argv);89var pkgs = program.args;1011if (!pkgs.length) {12 console.error('packages required');13 process.exit(1);14}1516console.log();17if (program.force) console.log(' force: install');18pkgs.forEach(function(pkg){19 console.log(' install : %s', pkg);20});21console.log();