Skip to content

nrkn/domon-treeadapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

domon-treeadapter

A parse5-compatible TreeAdapter for the DOMON format

See TreeAdapter at parse5 documentation

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

Install

npm install domon-treeadapter

Usage

const parse5 = require( 'parse5' )

const Adapter = require( 'domon-treeadapter' )

// create an adapter instance
const adapter = Adapter()

const domonTree = parse5.parse( '<div></div>', { treeAdapter: adapter } )

About

A parse5-compatible TreeAdapter for the DOMON format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published