UNPKG

beautify-console-log

Version:

This is a further beautification and encapsulation of the 'console' object. You can use it like using "console. log", "console. info", "console. warn", "console. error", and it can display the code line information where the log is printed.

7 lines (6 loc) 231 B
/** * 格式化字符串,用于兼容console.log('string=%s number=%d', 'string', 1)的写法,把参数进行格式化 * @param params any[] * @returns */ export declare const formatConsoleStr: (...params: any[]) => any[];