AriaMinaei / RenderKid

Stylish console.log for node
MIT License
163 stars 17 forks source link

How to print pretty JSON.stringify() #6

Closed chrisber closed 6 years ago

chrisber commented 8 years ago

How to print pretty JSON.stringify(obj, null,2) between block

on multiple lines it all gets squashed to one line?

AriaMinaei commented 6 years ago

For this, you basically have to write a replacement for JSON.stringify(). Something that turns a JSON object into an XML string. Should be quite simple with renderkid though.