1.0.0 • Published 6 years ago

colorized-cat v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Colorized Cat

Turn those boring cat outputs:

uncolorized cat output

...into colorized (syntax-highlighted) outputs!

colorized cat output

Colorized cat supports over 150 languages due to the fact that it uses PrismJS to tokenize and calculate the syntax highlighting for each token!

Installation

You can clone and install it locally, but to make it easy, this utility is published as an npm module.

npm install -g colorized-cat

The code is available on github.com

Usage

ccat YOUR_FILE

Note: At this time, file extensions (like file.py or file.js) are required to detect the language. In the future, hopefully this requirement can be removed.

Support languages

This utility currently supports the following languages:

  • C
  • C#
  • Haskell
  • JavaScript
  • PHP
  • Python
  • Yaml

More are quickly being added. If you don't see your favorite language listed, make a bug report!

Contributing

This project will require lots of additional work to support more languages, have configurable options, and have strong testing. All contributions are welcome. At this time there is no contributing guide, but please feel free to make bug reports or PR's as you see fit!