npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

resemble-cli

v0.0.19

Published

a fun little command line image differ

Downloads

34

Readme

Globally install for good times

npm install -g resemble-cli
run-resemble width=500 url=https://www.optimizely.com/ pages=about,contact,resources/sample-size-calculator/,resources/live-demo-webinar,customers,customers/customer-stories screensDir=mobile

Diff your images on GitHub.

resemble-cli will compare screenshots, and overwrite previous versions if there was a visual change/mismatch. This allows you to diff your images on GitHub through their pretty GUI.

Options

screenshotRoot

screenshotRoot=<name for screenshot directory> Default value: 'screenshots'

The name of the directory that will be created in the root of your application.

screensDir

screensDir=<name for subdirectory inside screenshot directory> Default value: ''

url

url=<some valid url> Default value: 'http://optimizely.com/'

A string value specifying the root url where you would like screenshots taken and paths referenced from.

width

width=<some seemingly reasonable screen width> Default value: 1024

A number specifying the width at which screenshots should be taken.

tolerance

tolerance=<some decimal tolerance> Default value: 0

Mismatch tolerance allowed for overwriting.

selector

selector=<some selector on the page> Default value: body

Selector for element on the page want the screenshot of, ex: #outer-wrapper.

--gm

Note: If flagged as true ImageMagick or GraphicsMagick must be globally installed on the user's machine via HomeBrew or some other medium

A flag specifying if you would like to compare screenshots with GraphicsMagick. Resemble CLI was created in a way that the user does not have to globally install external dependencies such as PhantomJS, CasperJS, ImageMagick, and GraphicsMagick. Therefore, default behavior is to compare images using ResembleJS. Comparing without GM is a much slower process as Phantom has to fire up a webpage to compare images within using Resemble.

--debug

This flag will will run the Phantom child process script in debug mode on port 5000.

If you would like to debug the node task I suggest globally installing node-inspector build-debug and running node-debug on the run-resemble.jsscript in the `bin' directory.

Mobile

mobile

Tablet

tablet

Desktop

desktop