@jbmoelker/webshot-service
Micro service to fetch a screenshot of a web page.
Last updated 3 years ago by jbmoelker .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @jbmoelker/webshot-service 
SYNC missed versions from official npm registry.

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:

Parameter Description Example
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
deploy Deploys project to now and aliases latest version to https://webshot.now.sh.
dev Starts micro service with hot reloading for development on http://localhost:3000.
start Starts micro service for production on http://localhost:3000.

License

MIT licensed © Jasper Moelker

Current Tags

  • 1.0.0                                ...           latest (3 years ago)

1 Versions

  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |