browsershot
browsershot copied to clipboard
Utility library for programmatic screenshots via getDisplayMedia
Browsershot
Taking screenshots programatically, using the getDisplayMedia API. Useful for debugging, feedback etc.
Example
let bs = await import("https://unpkg.com/browsershot/index.js");
try {
let canvas = await bs.toCanvas();
document.body.appendChild(canvas);
} catch (e) {
alert(e.message);
}