# chi-parse

> Parse HTML source into a single DOM node

Latest version **0.0.1** (published 2013-10-08) · BSD license · 0 weekly downloads

## Install

```sh
npm install chi-parse
pnpm add chi-parse
yarn add chi-parse
bun add chi-parse
```

## 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.0.1 |
| Published | 2013-10-08 |
| First published | 2013-10-08 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Conrad Zimmerman |
| Maintainers | conradz |
| Keywords | browser, dom, html, browserify |

## Links

- npm: https://www.npmjs.com/package/chi-parse
- Repository: https://github.com/conradz/chi-parse
- Issues: https://github.com/conradz/chi-parse/issues
- npm.io page: https://npm.io/package/chi-parse

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2013-10-08

## README

# chi-parse

[![NPM](https://nodei.co/npm/chi-parse.png?compact=true)](https://nodei.co/npm/chi-parse/)

[![Build Status](https://drone.io/github.com/conradz/chi-parse/status.png)](https://drone.io/github.com/conradz/chi-parse/latest)
[![Dependency Status](https://gemnasium.com/conradz/chi-parse.png)](https://gemnasium.com/conradz/chi-parse)

[![Selenium Test Status](https://saucelabs.com/browser-matrix/chi-parse.svg)](https://saucelabs.com/u/chi-parse)

Parse a string containing HTML into a single DOM node.

It will take care of handling nodes that can only be parsed in certain
contexts, such as `<td>` and `<tr>` nodes.

Warning: This treats the text as HTML source, make sure all input data is
trusted!

## Example

```js
var parse = require('chi-parse');

var src = '<p>Hello World!</p>',
    node = parse(src);

console.log(node.tagName); // "P"
```

## Reference

    parse(source)

Parses the HTML source specified by `source` into a single DOM node. If the
source contains none or more than one DOM elements, it will return `null`. Note
that this will ignore non-element nodes, such as text nodes, etc.

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