npx-run
Version:
Easily run scripts using npx.
24 lines (17 loc) • 497 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.main = void 0;
var _run = _interopRequireDefault(require("./run"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const main = async process => {
const [,, ...args] = process.argv;
process.exit((await (0, _run.default)(...args)));
};
/* istanbul ignore if */
exports.main = main;
if (require.main === module) {
main(process);
}