0.1.4 • Published 8 years ago

domon-parser v0.1.4

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

domon-parser

Parse HTML strings into the DOMON format

The DOMON format is just a lightweight DOM representation with no circular references, making it suitable for JSON etc.

Install

npm install domon-parser

Usage

const parser = require( 'domon-parser' )

const domonDoc = parser.parse( '<div></div>' )

const domonFragment = parser.parseFragment( '<div></div>' )