catc
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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.

Package Sidebar

Install

npm i catc

Weekly Downloads

2

Version

0.1.4

License

ISC

Unpacked Size

8.47 kB

Total Files

8

Last publish

Collaborators

  • hongbing2017