Skip to content

dominictarr/ansi-highlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ansi-highlight

highlight javascript in the terminal

example

var highlight = require('ansi-highlight')
var js = require('fs').readFileSync(__filename, 'utf8')
console.log(highlight(js))

see also

ansi-highlight uses regular expressions to tokenize javascript. this is very fast and simple, but is incorrect is a few weird edgecases. If need something to be completely correct, use cardinal which uses esprima to parse the javascript.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published