UNPKG

ayano-utils

Version:
18 lines (15 loc) 342 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); function runCmd(cmd, _args, cb) { var args = _args || []; var runner = require('child_process').spawn(cmd, args, { stdio: 'inherit', env: process.env }); runner.on('close', function (code) { cb && cb(code); }); } exports.default = runCmd;