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

adaptive-pixel-perfect

v0.5.9

Published

Pixel perfect for multiple resolutions

Downloads

95

Readme

Pixel perfect for multiple resolutions

Install

$ npm i adaptive-pixel-perfect --save-dev

Usage

 a_pp.start(port, designFolder, portForBrowserSync);

Use the plugin on port 3010 together with browserSync, (pre-create a design folder and add design images to it):

var a_pp = require('adaptive-pixel-perfect').create();
var browserSync = require('browser-sync').create();

var port = 3010;
var folderForDesignScreenshots = "design";
var portForBrowserSync = 3000;

browserSync.init({
    server: "./",
    cors: true,
    middleware: function (req, res, next) {
        res.setHeader('Access-Control-Allow-Origin', '*');
        next();
    },
    socket: {
        domain: 'localhost:' + portForBrowserSync
    },
    scriptPath: function (path, port, options) {
        return "http://" + options.getIn(['socket', 'domain']) + path;
    }
});

a_pp.start(port, folderForDesignScreenshots, portForBrowserSync);

The plugin will be available at http://localhost:3010/?a-pp=1

Supported key combinations

  • left mouse button + 1 - 9, 0 (switch between resolutions)
  • left mouse button + W, A, S, D (change the position of the iframe window)
  • left mouse button + Z, X, C (site layout, site layout on top of the design, the design)
  • Ctrl + R + move mouse (resize iframe)

Release Notes

| Release | Notes | | --- | --- | | 0.5.8 | Partial bug fixing with hiding the scroll in a-pp if the real scroll is hidden | | 0.5.6 | Hidden resolutions menu, show press new button. Hidden sizes iframe | | 0.5.5 | Fix escape screenshots of the design in the side and turn off the scroller when reloading browsersync. Fix task sync-thumbnails - add jpeg extension | | 0.5.2 | Added new minify-float stile panels | | 0.5.0 | Delete fast calibrator styles, simplified style, delete flicker function, transfer btn bottom space in global settings, (window deviation screenshots opacity 0.7, hide other window after show deviation window, deviation window draggable) | | 0.4.0 | Added fast calibrator styles | | 0.3.0 | Added a window with settings, added English, moved session groups to the settings window and divided the parameters for more flexible customization | | 0.2.8 | Fixed synchronization select pages | | 0.2.7 | Fixed saving the selected synchronization group | | 0.2.6 | If the user cuts the iframe then the button ceases to be active, but it remains to highlight the "badge". Now in the session, the priority of choosing the resolution or the size as a result of the manual resizing of the iframe | | 0.2.4 | Additing bootom space for close tag body, to be able to scroll down and see in the design which block should be typed as follows. Added the flicker function to make it easier to adjust the block with fuzzy edges under the design | | 0.2.0 | Improved design and made it more appropriate bootstrap. Additing hot-keys | | 0.1.0 | Alpha release |

###Sorry for the hacks and english

Licence

MIT

####Sorry for the hacks and english