treeadapter-mapper
Use parse5-compatible TreeAdapters to map between different DOM structures
See TreeAdapter at parse5 documentation
Install
npm install treeadapter-mapper
Usage
const parse5 = const Mapper = const parse5TreeAdapter = parse5treeAdaptersdefaultconst htmlparser2Adapter = parse5treeAdaptershtmlparser2 // create the mapper instance by passing the source and target adaptersconst mapper = const parse5Tree = parse5 const htmlparser2Tree =