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

banana-grid

v2.0.1

Published

## QuickStart ### Ease way Just put this in the head of your html: ```html <head> <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/banana-grid.min.css" /> <script type="text/javascript" src="https://unpkg.com/[email protected]/dist/ma

Downloads

56

Readme

banana-grid

QuickStart

Ease way

Just put this in the head of your html:

<head>
	<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/banana-grid.min.css" />
	<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/main.min.js"></script>
</head>

Better way

Step 1: Install with NPM

$ npm install --save banana-grid

Step 2: Import the javascript

import "banana-grid";

Step 3: import SCSS

@import "~/banana-grid/grid.scss";

Helpers

cols and rows

screen breakpoints helpers

| | | --x | --xx | --xxx | | --- | --- | --- | ---| --- | | unit | smartphone | small tablet | tablet / small desktop | desktop | | pixel | 0 | 576 | 960 | 1152 | | 8px grid | 0 | 72 | 120 | 144 | | 96px grid | 0 | 6 | 10 | 12 |

usage:

screen helper in size

<section class="cols">
    <div class="gw-2 gw-3--xxx"> </div>
</section>

The DIV above will have a width of 192 px in smartphones, tablets and small desktops (screens smaller than 1152 px) and a width of 480 px in desktops (screens equal or bigger than 1152 px)

screen helper in align

<section class="cols">
	<div class="gw-1 left right--xx ">
</section>

The DIV above will align on the left in smartphones, tablets and small desktops (screens smaller than 1152 px) and on the right in desktops (screens equal or bigger than 1152 px)

sizes

fixed 8px grid size

| Width | Height | Pixel Size |-- | -- | -- | | Grid Width | Grid Height | px | | .w-1 | .h-1 | 8 | | .w-2 | .h-2 | 16 | | .w-3 | .h-3 | 24 | | .w-4 | .h-4 | 32 | | ... | ... | ... | | .w-40 | .h-40 | 320 | | .w-41 | .h-41 | 328 | | ... | ... | ... | | .w-143 | .h-143 | 1144 | | .w-144 | .h-144 | 1152 |

fixed 96px grid size

| Width | Height | Pixel Size | Grid Size | |-- | -- | -- | -- | | Grid Width | Grid Height | 8px grid | px | | .gw-1 | .gh-1 | 12 | 96 | | .gw-2 | .gh-2 | 24 | 192 | | .gw-3 | .gh-3 | 36 | 288 | | .gw-4 | .gh-4 | 48 | 384 | | .gw-5 | .gh-5 | 60 | 480 | | .gw-6 | .gh-6 | 72 | 576 | | .gw-7 | .gh-7 | 84 | 672 | | .gw-8 | .gh-8 | 96 | 768 | | .gw-9 | .gh-9 | 108 | 864 | | .gw-10 | .gh-10 | 120 | 960 | | .gw-11 | .gh-11 | 132 | 1056 | | .gw-12 | .gh-12 | 144 | 1152 |

relative fluid sizes

| Width | Height | Fraction | |-- | -- | -- | | Relative Width | Rrelative Height | -- | | .rw-1 | .rh-1 | 1/12 | | .rw-2 | .rh-2 | 2/12 | | .rw-3 | .rh-3 | 3/12 | | .rw-4 | .rh-4 | 4/12 | | .rw-5 | .rh-5 | 5/12 | | .rw-6 | .rh-6 | 6/12 | | .rw-7 | .rh-7 | 7/12 | | .rw-8 | .rh-8 | 8/12 | | .rw-9 | .rh-9 | 8/12 | | .rw-10 | .rh-10 | 10/12 | | .rw-11 | .rh-11 | 11/12 | | .rw-12 | .rh-12 | 12/12 |