UNPKG

mihawk

Version:

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

11 lines (10 loc) 260 B
'use strict'; import { Printer } from './print'; export function processExit(code = 1, beforeQuit) { if (typeof beforeQuit === 'function') { beforeQuit(); } Printer.log('Will exiit process...'); console.log(); process.exit(code); }