1.0.3 • Published 8 years ago

highlight-term.js v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

highlight-term.js

highlight language with highlight.js but in terminal(use in node.js).

usage

api

var hljs = require('highlight-term.js');
console.log(hljs.highlight('js', 'function fnName() {}').value);

cli

# npm install with -g
npm install highlight-term.js -g

# use in term
# cat-hl <filename> [language]
hl package.json json
hl index.js js

screenshot

js format json format

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago