Skip to content

Utility library for programmatic screenshots via getDisplayMedia

Notifications You must be signed in to change notification settings

ondras/browsershot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

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);
}

About

Utility library for programmatic screenshots via getDisplayMedia

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published