reshape-parser
html parser for reshape
Last updated 8 years ago by jescalan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install reshape-parser 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (8 years ago)

6 Versions

  • 1.0.0                                ...           8 years ago
  • 0.3.1                                ...           8 years ago
  • 0.3.0                                ...           8 years ago
  • 0.2.1                                ...           10 years ago
  • 0.2.0                                ...           10 years ago
  • 0.1.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (1)
Dev Dependencies (4)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |