domon-parser
v0.1.4
Published
Parse HTML strings into the DOMON format
Downloads
2
Maintainers
Readme
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>' )