1.0.0 • Published 6 years ago

@jbmoelker/webshot-service v1.0.0

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

Webshot npm fetch-headers package

Micro service to fetch a screenshot of a web page as a PNG.

Demo: webshot.now.sh/?url=https://www.voorhoede.nl&w=480.

Parameters

The service can be configured with the following URL query parameters:

ParameterDescriptionExample
url (required)URL of the web page to take a screenshot of.url=https://www.voorhoede.nl
width or w (required)Width (in pixels) to set the viewport to.w=320
height or h (optional)Height (in pixels) to set the viewport to. If no height is provided a screenshot of the full page is created with the given viewport width.h=320

Development

This project requires Node.js (>= v8) and npm (comes with Node).

After installing dependencies using npm install the following scripts are available:

npm run ...Description
deployDeploys project to now and aliases latest version to https://webshot.now.sh.
devStarts micro service with hot reloading for development on http://localhost:3000.
startStarts micro service for production on http://localhost:3000.

License

MIT licensed © Jasper Moelker