# html-lml

> HTML parser extension for the LML package

Latest version **0.8.1** (published 2019-01-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install html-lml
pnpm add html-lml
yarn add html-lml
bun add html-lml
```

## 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.8.1 |
| Published | 2019-01-08 |
| First published | 2019-01-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 8.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Greg Varsanyi |
| Maintainers | gvarsanyi |
| Keywords | html, lml, alternative, ast, compiler, translate, simple, hierarchy, dom, xml, parser |

## Links

- npm: https://www.npmjs.com/package/html-lml
- Repository: https://github.com/lml-dom/html-lml
- Homepage: https://lml-dom.org/
- Issues: https://github.com/lml-dom/html-lml/issues
- npm.io page: https://npm.io/package/html-lml

## Dependencies (2)

- [lml](https://npm.io/package/lml.md) 0.8.1
- [htmlparser2](https://npm.io/package/htmlparser2.md) 3.10.0

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.8.1 (latest) — 2019-01-08

## README

# HTML-LML
Converts HTML to [LML](https://github.com/lml-dom/lml-js) or an AST format

```javascript
// convert HTML to LML
const parseHTML = require('lml').parseHTML;

parseHTML(htmlString).toLML();
```

Full signiture:
```typescript
parseHTML(source: string, parseConfig?: ParseConfig) => IParser
```

See the [lml](https://github.com/lml-dom/lml-js) documentation for details

## CLI
There is a dedicated command line tool for LML: [lml-cli](https://github.com/lml-dom/lml-cli)
Install that and this package globally to allow for HTML parsing on command line:
```bash
npm install --global html-lml
npm install --global lml-cli
lml --to lml source.html
```

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