0.2.3 • Published 8 years ago

esharpi v0.2.3

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

ESHarpi

A NodeJS based ECMAScript syntax highlighter based on http://rubyquiz.strd6.com/quizzes/218-syntax-highlighting

Build Status

Usage

npm install esharpi

NodeJS

esharpi

Accepts source code as a string and returns a string with inserted ANSI color character sequences for use on the console.

const esharpi = require('esharpi');

esharpi('const foo = "bar";');

esharpi.html

Accepts source code as a string and returns an HTML string with inline styles for ECMAScript syntax.

const esharpi = require('esharpi');

esharpi.html('const foo = "bar";');

Command Line

esharpi example.js
0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago

0.0.0

8 years ago