UNPKG

mihawk

Version:

A tiny & simple mock server tool, support json,js,cjs,ts(typescript).

14 lines (13 loc) 390 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.processExit = void 0; const print_1 = require("./print"); function processExit(code = 1, beforeQuit) { if (typeof beforeQuit === 'function') { beforeQuit(); } print_1.Printer.log('Will exiit process...'); console.log(); process.exit(code); } exports.processExit = processExit;