chromafi
Version:
💥 Syntax highlight to console: any function - any - object - any language.
18 lines (13 loc) • 289 B
JavaScript
const chromafi = require('.')
const obj = {foobar: 1337, 'baz-qux': function (a, b) {return 'Wombat!'}}
const options = {
lineNumberPad: 1,
codePad: 1,
indent: 2,
lineNumbers: true,
colors: {
line_numbers: chalk.grey
}
}
chromely = chromafi(obj, options)
console.log(chromely)