📜 ⬆️ ⬇️

prettyPrint

image Those of you who follow the author on Github may have noticed that he recently added a new project called prettyPrint.
“PrettyPrint” is a JavaScript dumper of variables for JavaScript similar to cfdump for ColdFusion. It allows you to display objects of any type in the form of tables for viewing during debugging.
See an example .

Highlights:



Example of use:


var table = prettyPrint( anyRandomThing, { /*optional options object */ } );

// Making the table viewable is down to you...
// eg
document .body.appendChild(table);


* This source code was highlighted with Source Code Highlighter .

')

Source: https://habr.com/ru/post/63009/


All Articles