json-to-html
Convert JSON Object to HTML.
Installation
npm install json-to-html
Usage
var json2html = html = ; console;
output:
{ "hello": "world"}
2 space indentation is default. Change it by adding a numeric argument to json2html
.
var html = ;
Every operand has a span added around it self with different classnames.
string
, boolean
, number
or null
.
License
See MIT-LICENSE