Dump javascript values and html like this (windows example, mac example).
# Using npm
npm install intitule
# Using Yarn
yarn add intitule
let dumper = require('intitule');
dumper.makeGlobal(); // This will make dump(), dd(), dump_diff() and dd_diff() methodes global available
dump('Hello World');
dump([1,2,3]);
dd('exit.');
View ./node_modules/intitule/examples/example.js file for more details. You can run this example like this:
node ./node_modules/intitule/examples/example.js
- make(color, value)
- registerColors(colors)
- bindAnsiColor(colorName, ansiColor)
- registerColor(colorName, colorValue)
- style(properties, styling)
- applyTheme(theme)
- diff(actual, expected)
- ddDiff(actual, expected)
- dump(value)
- dd(value)
- makeGlobal()
Intitule highlighting is fully customizable. You got 3 options to achieve this: