Skip to content
getDisplayMedia screenshots
Branch: master
Clone or download
Latest commit 5df2273 Apr 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md first version Apr 10, 2019
index.js first version Apr 10, 2019
package.json

README.md

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);
}
You can’t perform that action at this time.