prettify-json

1.0.0 • Public • Published

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>

Readme

Keywords

none

Package Sidebar

Install

npm i prettify-json

Weekly Downloads

180

Version

1.0.0

License

ISC

Unpacked Size

156 kB

Total Files

7

Last publish

Collaborators

  • bencode