html-json-highlight

1.1.1 • Public • Published

Welcome to Html Json Highlight

Browser Support

Chrome Firefox Safari Opera Edge IE
Latest Latest Latest Latest Latest 11

Install Command:

npm install html-json-highlight --save

Use Module

import HtmlJsonHighlight from 'html-json-highlight';

const Demo = new HtmlJsonHighlight({
	string: 'hello',
	number: 123,
	boolean: true,
	object: {
		string: 'world',
		number: 321,
		false
	},
	array: [
		'lZiMUl',
		258,
		true
	],
	
});

// Simulator koa Route
Route.get('/', async socket => {
	socket.status = 200;
	socket.type = 'text/html';
	socket.response.body =  await Demo.body(false);
})

Package Sidebar

Install

npm i html-json-highlight

Weekly Downloads

3

Version

1.1.1

License

Apache-2.0

Unpacked Size

23 kB

Total Files

15

Last publish

Collaborators

  • lzimul