0.0.5 • Published 3 years ago

snapshot-url v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

snapshot-url

A node.js library for rendering HTML from URLs after loading assets on the page (images, javascript).

Lightweight wrappers around:

Example usage:

const { Snapshot } = require('snapshot-url');

const url = 'file:///tmp/build/index.html';
const snapshot = new Snapshot(url);
const dom = await snapshot.renderDOM();
  
const document = dom.window.document;
const finalHtml = snapshot.getHtml({ prettyPrint: true });

License

MIT

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago