This commit is contained in:
Luk
2024-06-24 09:49:28 +08:00
parent 011853758f
commit fbaf230f48
3 changed files with 26 additions and 3 deletions

View File

@@ -7,6 +7,15 @@ function deepStringify (args = []) {
return JSON.stringify(args, null, 2) // used in web browser console, to avoid clicking to expand by hand.
}
// function prettyPrint (title, text, color) {
// console.log(
// `%c ${title} %c ${text} %c`,
// `background:${color};border:1px solid ${color}; padding: 1px; border-radius: 2px 0 0 2px; color: #fff;`,
// `border:1px solid ${color}; padding: 1px; border-radius: 0 2px 2px 0; color: ${color};`,
// 'background:transparent'
// )
// }
module.exports =
{
cclog (...args) {