sizzlify

A mini hack to embed Sizzle in nodejs, under the MIT licence

Usage no npm install needed!

<script type="module">
  import sizzlify from 'https://cdn.skypack.dev/sizzlify';
</script>

README

sizzlify

A mini hack to embed Sizzle in nodejs, under the MIT licence

Install

npm install sizzlify

Usage

var
sizzlify,
xmldom,
document;

sizzlify = require('sizzlify');
xmldom = require('xmldom');

document = xmldom.parseFromString(`<!DOCTYPE html><html><body></body></html>`);

sizzlify('html > body', document);