jsontohtml

0.0.6 • Public • Published

jsontoHTML

node js package to covert json object to html page

Now you can convert a json object to html

example

var test = {
	html: {
		head: {
			title: 'test',
		},
		body: {
			h1_id_header: 'Hello World',
			img_id_logo_src:"logo.jpg",
			h_href:["home.html",home],
			ul_class_menu: [{
					li: 'link1'
				},
				{
					li: 'link2 '
				},
				{
					li: ' link3'
				}]
		}
	}
}

var jth = require('jsontohtml');
=> jth.jsonToHTML(test,"name");

result ="name.html"

test

Hello world

home
  • link1
  • link2
  • link3

Package Sidebar

Install

npm i jsontohtml

Weekly Downloads

9

Version

0.0.6

License

BSD-2-Clause

Last publish

Collaborators

  • beshoysemem