sh-or-cmd
Version:
Returns 'sh' or 'cmd' based on platform
20 lines • 723 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const os = tslib_1.__importStar(require("os"));
exports.platform = os.platform();
function get(options) {
return exports.platform === 'win32' ? options.win32 : options.posix;
}
exports.get = get;
(function (get) {
let Default;
(function (Default) {
Default.win32 = 'cmd';
Default.posix = 'sh';
Default.options = { win32: Default.win32, posix: Default.posix };
Default.result = get(Default.options);
})(Default = get.Default || (get.Default = {}));
})(get = exports.get || (exports.get = {}));
exports.default = get.Default.result;
//# sourceMappingURL=index.js.map