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

@percy/cli-snapshot

Package Overview
Dependencies
Maintainers
1
Versions
250
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@percy/cli-snapshot

Snapshot a list or static directory of web pages.

  • 1.30.2-alpha.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is @percy/cli-snapshot?

@percy/cli-snapshot is a command-line tool for capturing visual snapshots of web pages and components. It integrates with Percy, a visual testing and review platform, to help developers catch visual regressions in their web applications.

What are @percy/cli-snapshot's main functionalities?

Capture a snapshot of a single URL

This command captures a visual snapshot of the specified URL and uploads it to Percy for visual comparison.

npx @percy/cli-snapshot http://example.com

Capture snapshots from a list of URLs

This command reads a list of URLs from a file (urls.txt) and captures visual snapshots for each URL, uploading them to Percy.

npx @percy/cli-snapshot urls.txt

Capture snapshots with custom widths

This command captures visual snapshots of the specified URL at different viewport widths (375px, 768px, and 1280px) and uploads them to Percy.

npx @percy/cli-snapshot http://example.com --widths=375,768,1280

Capture snapshots with custom CSS

This command captures a visual snapshot of the specified URL with custom CSS applied, and uploads it to Percy.

npx @percy/cli-snapshot http://example.com --css='body { background-color: red; }'

Capture snapshots with authentication

This command captures a visual snapshot of a URL that requires basic authentication, using the provided username and password, and uploads it to Percy.

npx @percy/cli-snapshot http://example.com --auth=username:password

Other packages similar to @percy/cli-snapshot

FAQs

Package last updated on 23 Oct 2024

Did you know?

Socket

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.

Install

Related posts

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