Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hildjj/expat-wasm-dom
A simple DOM for expat-wasm
https://github.com/hildjj/expat-wasm-dom
Last synced: 15 days ago
JSON representation
A simple DOM for expat-wasm
- Host: GitHub
- URL: https://github.com/hildjj/expat-wasm-dom
- Owner: hildjj
- License: other
- Created: 2018-01-15T22:53:23.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2023-05-10T19:03:54.000Z (over 1 year ago)
- Last Synced: 2024-05-02T00:06:58.753Z (7 months ago)
- Language: JavaScript
- Size: 1.89 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# expat-wasm-dom
A Document Object Model for [expat-wasm](https://github.com/hildjj/expat-wasm).
To install:
```sh
npm install --save expat-wasm-dom
```To use:
```js
import DomParser from 'expat-wasm-dom'
const doc = DomParser.parse('')
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](https://hildjj.github.io/expat-wasm-dom/) is available.
A Command Line Interface is available in [expat-wasm-dom-cli](https://github.com/hildjj/expat-wasm-dom/tree/main/cli).
---
[![Tests](https://github.com/hildjj/expat-wasm-dom/actions/workflows/node.js.yml/badge.svg)](https://github.com/hildjj/expat-wasm-dom/actions/workflows/node.js.yml)
[![codecov](https://codecov.io/gh/hildjj/expat-wasm-dom/branch/main/graph/badge.svg?token=MPGGvwbrqR)](https://codecov.io/gh/hildjj/expat-wasm-dom)