Socket
Socket
Sign inDemoInstall

capture-website

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capture-website - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

8

package.json
{
"name": "capture-website",
"version": "0.6.0",
"version": "0.7.0",
"description": "Capture screenshots of websites",

@@ -39,7 +39,7 @@ "license": "MIT",

"file-url": "^3.0.0",
"puppeteer": "^1.20.0",
"puppeteer": "^2.0.0",
"tough-cookie": "^3.0.1"
},
"devDependencies": {
"@types/puppeteer": "^1.12.3",
"@types/puppeteer": "^1.20.2",
"ava": "^2.0.0",

@@ -54,5 +54,5 @@ "create-test-server": "^3.0.1",

"tempy": "^0.3.0",
"tsd": "^0.9.0",
"tsd": "^0.10.0",
"xo": "^0.25.3"
}
}

@@ -16,3 +16,3 @@ # capture-website [![Build Status](https://travis-ci.com/sindresorhus/capture-website.svg?branch=master)](https://travis-ci.com/sindresorhus/capture-website)

Note to Linux users: If you get a "No usable sandbox!" error, you need to enable [system sandboxing](https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md#setting-up-chrome-linux-sandbox).
Note to Linux users: If you get a sandbox-related error, you need to enable [system sandboxing](#im-getting-a-sandbox-related-error).

@@ -480,2 +480,23 @@

### I'm getting a sandbox-related error
If you get an error like `No usable sandbox!` or `Running as root without --no-sandbox is not supported`, you need to properly [set up sandboxing](https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md#setting-up-chrome-linux-sandbox) on your Linux instance.
Alternatively, if you completely trust the content, you can disable sandboxing (strongly discouraged):
```js
const captureWebsite = require('capture-website');
(async () => {
await captureWebsite.file('…', '…', {
launchOptions: {
args: [
'--no-sandbox',
'--disable-setuid-sandbox'
]
}
});
})();
```
### How is this different from your [Pageres](https://github.com/sindresorhus/pageres) project?

@@ -482,0 +503,0 @@

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