cat
with syntax highlighting. Auto-detects the language via the file
extension, or tries to infer it automatically.
hicat index.js
Pipe something to hicat
. It will figure out what language it is in.
curl http://site.com | hicat
If hicat fails to detect a language, explicitly pass it -t TYPE
.
curl http://site.com | hicat -t xml
$ npm install -g hicat
Usage:
$ hicat --help
Usage:
hicat [options] [file]
... | hicat [options]
Options:
-h, --help print usage information
-v, --version show version info and exit
-t, --type TYPE use a given file type
hicat © 2014+, Rico Sta. Cruz. Released under the MIT License.
Authored and maintained by Rico Sta. Cruz with help from contributors.
ricostacruz.com · GitHub @rstacruz · Twitter @rstacruz