1.0.0 • Published 9 years ago
pretty-log-2 v1.0.0
#Pretty Log Tiny modules that provides basic 'log' utility function which handles some basic logic for pretty printing objects in javascript
#API ##log Log objects purely using the behavior found in console.log
var myObject = {
name: 'Bob',
age: 5
}
log(myObject)
Can also be used without any 'this' context so useful for callbacks
promiseFn()
.then(doMore)
.catch(log)
##pp 'Pretty-print' a javascript object (also accepts primitives) for better readability.
var myObject = {
name: 'Bob',
age: 5
}
pp(myObject)
1.0.0
9 years ago