UNPKG

node-ff

Version:
20 lines 595 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExecSync = void 0; const child_process_1 = require("child_process"); class ExecSync { exec({ commands }) { if (typeof commands === 'object') { this.execObj({ commands }); } else { (0, child_process_1.execSync)(commands); } } execObj({ commands }) { const commandsArray = commands; commandsArray.forEach((element) => (0, child_process_1.execSync)(element)); } } exports.ExecSync = ExecSync; //# sourceMappingURL=exec.js.map