hicat
Command-line syntax highlighter.
Last updated 5 years ago by rstacruz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hicat 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.7.0                                ...           latest (5 years ago)

14 Versions

  • 0.7.0                                ...           5 years ago
  • 0.6.2                                ...           6 years ago
  • 0.6.1                                ...           6 years ago
  • 0.6.0                                ...           6 years ago
  • 0.5.1                                ...           6 years ago
  • 0.5.0                                ...           6 years ago
  • 0.4.1                                ...           6 years ago
  • 0.4.0                                ...           6 years ago
  • 0.3.1                                ...           6 years ago
  • 0.3.0                                ...           6 years ago
  • 0.2.3                                ...           6 years ago
  • 0.2.2                                ...           6 years ago
  • 0.2.0                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2,184
Last Day 42
Last Week 765
Last Month 2,262
Dependencies (2)
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |