1.0.0 • Published 5 years ago
prettify-json v1.0.0
prettify-json
prettify json object for output
const prettifyJSON = require('prettify-json');
const o = {
name: 'hello'
};
const json = prettifyJSON(o);
then you can use it in html template file
<pre>
{{json}}
</pre>