UNPKG

runok

Version:

NPM scripts on steroids! Replace your scripts with pure JS

22 lines (21 loc) 449 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const exec_1 = require("./exec"); /** * Executes npx script * * ```js * await npx('create-codeceptjs .'); * ``` * * @param command * @param config */ async function npx(command, config) { return exec_1.default(command, (baseCfg) => { baseCfg.TASK = 'npx'; baseCfg.prefix('npx'); baseCfg.apply(config); }); } exports.default = npx;