console-highlight

0.1.0 • Public • Published

console-highlight

Get syntax highlighting in the console.

Usage:

var highlight = require('console-highlight');
 
console.log(highlight('javascript to highlight', {
  // optional options
  language: 'javascript', // will auto-detect if omitted
  theme: 'default' // a highlight.js theme
}));

Example output (using the 'monokai' theme):

Console output

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1

Package Sidebar

Install

npm i console-highlight

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • dtao