UNPKG

@apideck/portman

Version:

Port OpenAPI Spec to Postman Collection, with contract & variation tests included

19 lines 668 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.execShellCommand = void 0; var child_process_1 = require("child_process"); var execShellCommand = function (cmd) { return new Promise(function (resolve, _reject) { (0, child_process_1.exec)(cmd, { maxBuffer: 1024 * 500 }, function (error, stdout, stderr) { if (error) { console.warn(error); } else if (stderr) { console.log(stderr); } resolve(stdout ? true : false); }); }); }; exports.execShellCommand = execShellCommand; //# sourceMappingURL=execShellCommand.js.map