npm.io
3.1.0 • Published 10 years ago

ape-highlighting

Licence
MIT
Version
3.1.0
Deps
2
Vulns
0
Weekly
0

ape-highlighting

Build Status Code Climate Code Coverage npm Version JS Standard

ape framework module for highlighting.

Installation

$ npm install ape-highlighting --save

Usage

Highlight JSX source code.
'use strict'

const apeHighlighting = require('ape-highlighting')
const fs = require('fs')

let highlighed = apeHighlighting.highlightJsx(
  fs.readFileSync(require.resolve('../jsx/some-jsx.jsx'))
)

console.log(highlighed)

License

This software is released under the MIT License.

Keywords