Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
gatsby-plugin-screenshot
Advanced tools
Screenshots all your pages in a configured directory.
Puppeteer is a Chrome headless framework which allows you to render your app in Chromium.
With this plugin, all you Gatsby pages will be browsed and screenshotted. You can then use these screenshots as documentation or to avoid visual regressions with services like Argos.
npm install --save-dev gatsby-plugin-screenshot
Just add the plugin to the plugins array in your gatsby-config.js
plugins: [`gatsby-plugin-screenshot`];
By default, the plugin will run gatsby serve
to port 8000, and save screenshots in ./screenshots
directory.
You can configure the default behaviour using the followin plugin options:
// in your gatsby-config.js
module.exports = {
plugins: [
{
resolve: `gatsby-plugin-screenshot`,
options: {
// The puppeteer launch options
browser: {
args: [
"--no-sandbox",
"--disable-setuid-sandbox",
"--start-fullscreen",
],
},
dir: "./screenshots",
port: 8000,
},
},
],
};
FAQs
Screenshots all routes of a Gatsby project.
The npm package gatsby-plugin-screenshot receives a total of 9 weekly downloads. As such, gatsby-plugin-screenshot popularity was classified as not popular.
We found that gatsby-plugin-screenshot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.