reshape-parser

1.0.0 • Public • Published

Reshape Parser

npm tests dependencies coverage

An HTML parser for reshape based on parse5, featuring source location info and more robust node types.

Note: This project is in early development, and versioning is a little different. Read this for more details.

Installation

npm install reshape-parser -S

Note: This project is compatible with node v6+ only

Usage

const parser = require('reshape-parser')
const html = '<p>hello world</p>'
 
parser(html) // returns a reshape AST

Options

No options are required, all are optional.

Name Description Default
filename Attach a filename to the location info in each node.

The Reshape AST

See the Reshape AST documentation for more information on the format.

License & Contributing

Readme

Keywords

Package Sidebar

Install

npm i reshape-parser

Weekly Downloads

39

Version

1.0.0

License

MIT

Unpacked Size

6.36 kB

Total Files

6

Last publish

Collaborators

  • jescalan