0.1.0 • Published 10 years ago

console-highlight v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

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