2.0.0 • Published 12 months ago

expat-wasm-dom v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

expat-wasm-dom

A Document Object Model for expat-wasm.

To install:

npm install --save expat-wasm-dom

To use:

import DomParser from 'expat-wasm-dom'
const doc = DomParser.parse('<foo><bar/></foo>')
console.log(doc.root.toString())
console.log(doc.get('//bar'))

Note that there is an implementation of XPath3 included. It is not in any way feature-complete yet, but it has a bunch of useful features already.

Full documentation is available.

A Command Line Interface is available in expat-wasm-dom-cli.


Tests codecov