1.0.5 • Published 2 years ago

@ohpyupi/screenshotjs v1.0.5

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

ScreenshotJS

The module helps to take a screenshot in browsers.

Demo

Screenshot Demo Gif

Installation

npm install html2canvas @ohpyupi/screenshotjs -S

Methods

capture(options) -> void

Allows users to select an area to be screenshotted.

Parameters

NameTypeDescription
options.onComplete(dataUrl) => voidA callback called when the area of screenshot is selected.

download(dataUrl, filename) -> void

Downloads an image dataUrl to the local drive.

Parameters

NameTypeDescription
dataUrlstringImage data in data url format
filenamestringThe filename of image data

License

MIT

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago