UNPKG

coffee

Version:
11 lines (9 loc) 310 B
'use strict'; module.exports = function show(obj) { if (obj instanceof Buffer) { obj = obj.toString(); } // escape \n to \\n for good view in terminal return (typeof obj === 'string' ? obj.replace(/\n/g, '\\n') : obj) + '(' + {}.toString.call(obj).replace(/^\[object (.*)\]$/, '$1') + ')'; };