consolehighlighter

Leverages Alex Gorbatchev's Syntax Highlighter and provides similar facilities for ANSI terminals.

npm install consolehighlighter
12 downloads in the last week
24 downloads in the last month

Console Highlighter is tool that leverages Alex Gorbatchev's Syntax Highlighter (https://github.com/alexgorbatchev/SyntaxHighlighter) tool to highlight all his supported syntax highlighting. Rather than perform that syntax highlighting on the web, however, it uses ANSI escape sequences to highlight supplied source code in the console.

It also has node.js bindings such that this functionality can be used in other node based applications with ease.

npm loves you