UNPKG

mihawk

Version:

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

29 lines (28 loc) 566 B
'use strict'; import { LOG_FLAG } from '../consts'; export const Printer = { log(...args) { if (args.length) { console.log(LOG_FLAG, ...args); } else { console.log(); } }, warn(...args) { if (args.length) { console.warn(LOG_FLAG, ...args); } else { console.warn(); } }, error(...args) { if (args.length) { console.error(LOG_FLAG, ...args); } else { console.error(); } }, };