catc
v0.1.4
Published
output syntax highlighting text with ANSI code in your terminal
Downloads
17
Maintainers
Readme
catc
output syntax highlighting text with ANSI code in your terminal
CLI Usage
Output a file
$ catc package.json
Color output of another program with piping.
$ cat index.js | catc
Command line options:
Usage: catc [options] [file]
Outputs a file or STDIN input with syntax highlighting
Options:
--language, -l Set the langugage explicitely
If omitted will try to auto-detect
--version, -v Show version number [boolean]
--help, -h Show help [boolean]
Supported Languages
All languages of highlight.js are supported. Check a CI build for examples of all the different languages and their highlighting.
Contributing
The module is written in TypeScript and can be compiled with npm run build
.
npm run watch
starts tsc
in watch mode.