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

puppeteer-screenshot-cli

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puppeteer-screenshot-cli - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

7

CHANGELOG.md
1.2.0 / 2018-02-10
==================
* Redirect picture stream to stdout when `--output -` or `-o -`
* Redirect picture stream to stdout when no `--output` given
* Define minimum required node version to 6.4.0
1.1.1 / 2018-02-09

@@ -3,0 +10,0 @@ ==================

10

index.js

@@ -26,2 +26,3 @@ #!/usr/bin/env node

url,
output,
selector = 'body',

@@ -31,3 +32,2 @@ width = 800,

type = 'jpeg',
output = `screenshot.${type}`,
quality = type === 'jpeg' ? 90 : undefined,

@@ -48,3 +48,5 @@ headless = true,

await page.screenshot({
output = output === '-' ? undefined : output;
const picture = await page.screenshot({
type, quality, fullPage,

@@ -55,2 +57,6 @@ path: output,

if (!output) {
process.stdout.write(picture);
}
await browser.close();

@@ -57,0 +63,0 @@ };

7

package.json
{
"name": "puppeteer-screenshot-cli",
"version": "1.1.1",
"version": "1.2.0",
"engines": {
"node": ">=6.4.0"
},
"description": "Simple wrapper around Puppeteer to take screenshot from command line",

@@ -23,4 +26,4 @@ "repository": "github:mabhub/puppeteer-screenshot-cli",

"scripts": {
"version": "git changelog && git add CHANGELOG.md"
"version": "git changelog -t $npm_package_version && git add CHANGELOG.md"
}
}
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