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

bromide

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bromide

UI to view and compare difference between two sets of images. This tool is meant to be used as part of a larger visual regression toolchain, so you'll still need something that actually takes screenshots & compares them.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

bromide

UI to view and compare difference between two sets of images. This tool is meant to be used as part of a larger visual regression toolchain, so you'll still need something that actually takes screenshots & compares them.

it'll group changes by how changed they are and allow you to quickly view original, side by side, or a diff map between all image sets.

screenshot 2019-02-10 at 9 00 01 am

how to use

Let's say you have this json: It's a list of image urls, a friendly name for each, and the difference between them, it looks like this:

📄 /changes.json
[
	{
		"srcset": {
			"original": "https://i.imgur.com/do79zD3.jpg",
			"current": "https://i.imgur.com/6INW6uB.jpg"
		},
		"name": "Landing page",
		"diff": 0.862
	},
	{
		"srcset": {
			"original": "https://i.imgur.com/j0aYNKq.png",
			"current": "https://i.imgur.com/ZXmcL9U.png"
		},
		"name": "User profile menu",
		"diff": 0.9
  },
  {...}
]

It's a simple pretty unopinionated data shape but the same can't be said of all the possible ways to generate it, that's why bromide only concerns itself with letting you see the visual regressions!

In the same directory, you can run

npx bromide-build

FAQs

Package last updated on 10 Feb 2019

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