Coder Social home page Coder Social logo

chromascope's Introduction

Chromascope

chromascope_21x9

npm GitHub Workflow Status (with branch)

Chromascope is a tool for visualizing the diff of a given URL between chromium, webkit, and firefox. It uses Playwright to capture the screenshots and pixelmatch to compare them.

Usage

Can be installed globally with pnpm|npm|yarn:

pnpm add -g chromascope
npm i -g chromascope
yarn global add chromascope

or run it directly with npx:

npx chromascope <command> [options]

Commands

$ chromascope --help
chromascope/x.x.x

Usage:
  $ chromascope <command> [options]

Commands:
  diff <url>  Diff the URL in chromium, firefox, and webkit. Using chromium as the base.

For more info, run any command with the `--help` flag:
  $ chromascope diff --help

Options:
  -h, --help     Display this message
  -v, --version  Display version number

Diff

$ chromascope diff --help
chromascope/x.x.x

Usage:
  $ chromascope diff <url>

Options:
  -e, --element <selector>     Diff only the element with the given selector
  -f, --full-page              Take a full page screenshot
  -v, --verbose                Show more output
  -c, --cookie <cookie>        Add one or more cookies to the context. Format: key=value;key2=value2
  -s, --save-diff              Save generated diff as png
  -t, --threshold <threshold>  Set the threshold for the diff (default: 0.2)
  -f, --folder <folder>        Set the base folder for chromascope runs (default: chromascope-runs)
  -h, --help                   Display this message

chromascope's People

Contributors

shtian avatar github-actions[bot] avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.