esharpi
v0.2.3
Published
A NodeJS based syntax highlighter based on http://rubyquiz.strd6.com/quizzes/218-syntax-highlighting
Downloads
30
Readme
ESHarpi
A NodeJS based ECMAScript syntax highlighter based on http://rubyquiz.strd6.com/quizzes/218-syntax-highlighting
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