npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

hl

1.2.0

@bcoe

npmHomeRepoSnykSocket
Downloads:6
$ npm install hl
DailyWeeklyMonthlyYearly

hl

Build Status Coverage Status NPM version

Use Atom's syntax-highlighter from the command line.

npm install hl -g

Provides syntax highlighting for:

  • JavaScript
  • Ruby
  • JSON
  • ObjectiveC
  • CPP
  • Markdown
  • Python

Open an issue or pull-request if we're missing a language you'd like to see!

Usage

hl index.js
hl main.rb
hl foo.m
hl package.json

You can also use unix pipes:

cat index.rb | hl --extension=rb --pipe

API

var hl = require('hl')
var out = hl('index.js', {
  numeric: 'yellow'
})
console.log(out)

License

ISC