esharpi

0.2.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i esharpi

Weekly Downloads

5

Version

0.2.3

License

ISC

Last publish

Collaborators

  • alexlrobertson