#How to get the nice Deno console.log format into a string?
1 messages · Page 1 of 1 (latest)
I'm not sure if that formatting is exposed to us. Maybe it's internal to Deno
What you can do is JSON.stringify(obj). Not the same output as console.log, but better than .toString()
Try Deno.inspect(myObj) which returns a string in the same format as console.log(myObj)
Oh I didn't know that one. Nice
Oh my goodness, that is so incredibly awesome. Thank you so much!