hicat

Command-line syntax highlighter

  • Owner: rstacruz/hicat
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

hicat :cat:

cat with syntax highlighting. The language is auto-detected through the file
extension.

hicat index.js

Pipe something to hicat. The language will be inferred from the contents.

curl http://site.com, hicat

If hicat fails to detect a language, specify it using -l LANG.

curl http://site.com, hicat -l xml

Status

Installation

$ npm install -g hicat

npm version

Usage:

$ hicat --help

  Usage:
      hicat [options] FILE
      ..., hicat [options]

  Options:
      -h, --help         print usage information
      -v, --version      show version info and exit
      -l, --lang LANG    use a given language
          --languages    list available languages
          --no-pager     disable the pager

Tips and tricks

Add an alias to your ~/.bashrc to save a few keystrokes.

alias hi=hicat

Btw

highlight.js powers the syntax highlighter engine.

Thanks

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

Main metrics

Overview
Name With Ownerrstacruz/hicat
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
Platform
License:
所有者活动
Created At2014-07-30 03:33:57
Pushed At2022-11-10 10:22:02
Last Commit At2021-04-08 13:32:18
Release Count18
Last Release Namev0.9.0 (Posted on 2021-04-08 13:32:18)
First Release Namev0.1.0 (Posted on 2014-07-30 11:40:07)
用户参与
Stargazers Count406
Watchers Count8
Fork Count53
Commits Count119
Has Issues Enabled
Issues Count7
Issue Open Count1
Pull Requests Count5
Pull Requests Open Count5
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private