Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

screenshotscloud

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

screenshotscloud - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "screenshotscloud",
"version": "1.0.2",
"version": "1.0.3",
"description": "ScreenshotsCloud node.js screenshot generator",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -7,4 +7,6 @@ [![Build Status](https://travis-ci.org/ScreenshotsCloud/screenshotscloud-node.svg?branch=master)](https://travis-ci.org/ScreenshotsCloud/screenshotscloud-node)

Get high quality screenshots using a real browser in seconds using our reliable CDN backed service
Get high quality real browser screenshots in seconds using our reliable CDN backed API service.
Get an API Key to start using this fast screenshot API service at [ScreenshotsCloud](https://screenshots.cloud).
## Requirements

@@ -22,3 +24,3 @@

Once installed you can generate screenshots as follows:
Once installed you can generate screenshot urls as follows:

@@ -46,10 +48,13 @@ ```node

| url | | **Required.** The website address that you want to take a screenshot of. |
| width | 1920 | Width of the thumbnail. |
| width | 1920 | Width of the thumbnail. This option is only valid for png or jpg format options. |
| viewport_width | 1920 | Width of the browser viewport this is the actual width of the page before we resize it for the thumbnail. |
| viewport_height | (1200) | Height of the browser viewport, if you do not give this parameter we will calculate it for you based on viewport_width in 16:10 ratio. |
| full_page | false | Capture a full length screenshot of the requested page. |
| delay | 250 | Amount of time to wait before taking a screenshot of the page after it is fully loaded. Maximum 120000ms (2 minutes), minimum 250ms. |
| cache_time | 2592000 | Amount of time in milliseconds to wait before taking the screenshot again. Maximum 2592000ms (30 days), minimum 1ms. |
| user_agent | Latest Firefox User Agent | Set the user agent this screenshot will identify as. Useful for identifying as a mobile or tablet browser or to identify as a specific browser if the website pretends it needs Internet Explorer to view it's contents. |
| language | false | Trim the outer color of the screenshot, useful for SVG's. |
| full_page | false | Capture a full length screenshot of the requested page. If the format is pdf this option will always be true. |
| format | png | Output the screenshot as a PNG (png), JPEG (jpg) image or PDF (pdf). |
| quality | 95 (if format=jpg) | Set the jpeg quality of the screenshot if jpeg is set as the format. |
| delay | 250 | Amount of time to wait in milliseconds before taking a screenshot of the page after it is fully loaded. Maximum 60000 (1 minute), minimum 100. |
| cache_time | 2592000 | Amount of time in milliseconds to wait before taking a fresh screenshot for the same request. Maximum 2592000 (30 days), minimum 1. |
| force | false | Force a new screenshot to be taken with no cache. |
| user_agent | Latest Firefox User Agent | Set the user agent this screenshot will identify as. Useful for identifying as a mobile or tablet browser or to identify as a specific browser if the website pretends it needs Internet Explorer. |
| language | false | Trim the excess space around the resulting screenshot using the most top left pixel color, useful for SVG's. |
| transparent | false | Remove the background from the page, PNG format required. |

@@ -60,10 +65,8 @@ | language | en | Accept-Language header customization for websites that support it, set ja for Japanese, de for German etc. |

| disable_images | false | Don't download images on this page. |
| timeout | 300000 | Amount of time in milliseconds to wait before taking screenshot anyway. Maximum 300000ms (5 minutes). |
| timeout | 300000 | Amount of time in milliseconds to wait before taking screenshot anyway. Maximum 300000 (5 minutes). |
| mobile | false | Shortcut to set pixel_ratio, user_agent, viewport_width, viewport_height and width to that of the latest iPhone. |
| pixel_ratio | 1 | Multiplier that sets the pixel density of the page relative to the resolution, useful for taking retina screenshots (2). |
| format | png | Output the screenshot as a PNG (png) or JPEG (jpg) image. |
| quality | 92 (if format=jpg) | Set the jpeg quality of the screenshot if jpeg is set as the format. |
| click_selector | | Accepts valid DOM selector (#wantedselector). Rendered screenshot will only display contents of DOM selector. |
| wait_selector | | Accepts valid DOM selector (.valid_selector > .another_class). We will not take the screenshot until .valid_selector appears on this screen and is not display:none; or timeout is reached. |
| clip_selector | | Accepts valid DOM selector (.valid_selector:not(div)). Rendered screenshot will only display contents of DOM selector. |
| clip_selector | | Accepts valid DOM selector (e.g. .valid_selector:not(div)). Rendered screenshot will only display contents of DOM selector. This option is only valid for png or jpg format options. |

@@ -88,2 +91,5 @@ More documentation about this package and other language implementations can be found at https://screenshots.cloud/documentation.

| Ruby | https://github.com/ScreenshotsCloud/screenshotscloud-ruby |
| Shell Script | https://github.com/ScreenshotsCloud/screenshotscloud-sh |
| ColdFusion | https://github.com/ScreenshotsCloud/screenshotscloud-coldfusion |
| Shell Script | https://github.com/ScreenshotsCloud/screenshotscloud-sh |
ScreenshotsCloud is made by Brushd https://brushd.com/
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc