# @dcmox/lexy

> Lexy, the Lexer. Part of the MoxyScript Framework

Latest version **1.0.0** (published 2020-01-26) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @dcmox/lexy
pnpm add @dcmox/lexy
yarn add @dcmox/lexy
bun add @dcmox/lexy
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-01-26 |
| First published | 2020-01-26 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 1 |
| Unpacked size | 26.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daniel Moxon |
| Maintainers | dcmox |
| Keywords | lexer, lexy |

## Links

- npm: https://www.npmjs.com/package/@dcmox/lexy
- Repository: https://github.com/dcmox/lexy
- Homepage: https://github.com/dcmox/lexy#readme
- Issues: https://github.com/dcmox/lexy/issues
- npm.io page: https://npm.io/package/@dcmox/lexy

## Dependencies (1)

- [string-dist](https://npm.io/package/string-dist.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2020-01-26

## README

# lexy
Lexy is an HTML lexer that can break down an HTML document into a tree-like structure and find parsing errors (unclosed/closed tags that are missing) and suggest hints at what might be wrong.

## Use
```typescript
const LexyScan = require('@dcmox/lexy').LexyScan

const lexy = new LexyScan(doc)
console.log(JSON.stringify(lexy.scan(), null, 2))
```

## Example output
![LexyScan](https://i.imgur.com/o0id6jv.jpg)

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