@easy-install/easy-install
Version:
18 lines (17 loc) • 455 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.install = install;
const ei_1 = require("./ei");
function install(url, bin, installOnly, installDir, quiet = false) {
const args = [url];
if (installDir) {
args.push('-d', installDir);
}
if (bin) {
args.push('--bin', bin);
}
if (installOnly) {
args.push('--install-only');
}
return (0, ei_1.runEi)(args, quiet);
}