# js-highlight

> Highlight JavaScript code.

Latest version **0.1.0** (published 2015-09-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install js-highlight
pnpm add js-highlight
yarn add js-highlight
bun add js-highlight
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2015-09-29 |
| First published | 2015-09-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | luobotang |
| Maintainers | luobotang |

## Links

- npm: https://www.npmjs.com/package/js-highlight
- Repository: https://github.com/luobotang/js-highlight
- Homepage: https://github.com/luobotang/js-highlight#readme
- Issues: https://github.com/luobotang/js-highlight/issues
- npm.io page: https://npm.io/package/js-highlight

## Dependencies (1)

- [domready](https://npm.io/package/domready.md) ^0.3.0

## Recent versions

- 0.1.0 (latest) — 2015-09-29

## README

# js-highlight

Highlight JavaScript code with support of [PEG.js](https://github.com/pegjs/pegjs).

## install

```bash
npm install js-highlight
```

## usage

```html
<link rel="stylesheet" href="highlight.css">

<pre data-src="code-example"></pre>

<script type="text/sourcecode" id="code-example">
function sayHi() {
    console.log('Hello, world');
}

sayHi();
</script>
<script src="highlight.min.js"></script>
```

---
_Source: https://npm.io/package/js-highlight · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
