log-anything
log-anything
is a dead simple JS debug/logging utility
Usage
npm install log-anything
Then require it.
const l = ; const obj = a: 1 b: 2 c: 3 ;// log displays valuesl;// obj is { a: 1, b: 2, c: 3 } and this is an array: [ 3, 2, 1 ] var xs = 'ops/sec' 'name' '(comment)' 52056 'algo 1' '9.99' 'two' 'strange' 10 'third one' 'nine thousand' 'NaN' 'fun!';// logt displays a tablel;/*ops/sec name (comment)520.56 algo 1 9.99 two strange 10 third onenine thousand NaN fun!*/