prismjs

Lightweight, robust, elegant syntax highlighting. A spin-off project from Dabblet.

cardinal

Syntax highlights JavaScript code with ANSI colors to be printed to the terminal.

ansicolors

Functions that surround a string with ansicolor codes so it prints in color.