Skip to content

beshoysemsem/jsontoHTML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

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"

<title>test</title>

Hello world

home
  • link1
  • link2
  • link3

About

node js package to covert json object to html page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published