0.1.4 • Published 6 years ago

catc v0.1.4

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

catc

output syntax highlighting text with ANSI code in your terminal

npm downloads node license

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.

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago