0.0.3 • Published 5 years ago

universal-dom-parser v0.0.3

Weekly downloads
175
License
ISC
Repository
github
Last release
5 years ago

universal-dom-parser

Usage

Make sure that whatever build system you are using (Webpack etc) is honoring the browser field in package.json. Then import the library and use it the same way you would use the browser native DOMParser.

let DOMParser = require('isomorphic-dom-parser');
let parser = new DOMParser();
let doc = parser.parseFromString(`<html><body>Precious website</body></html>`, 'text/html');

Implementation

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago