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 🙏

© 2026 – Pkg Stats / Ryan Hefner

css-prop-utils

v1.1.2

Published

CSS prop utils

Readme

CSS Prop Utils ⚙️

Util based approach of styling your elements fast and in a reliable way


Setup

Import appropriate css-props classes

import "css-prop-utils/css/display.css";
import "css-prop-utils/css/flex-wrap.css";
import "css-prop-utils/css/justify-content.css";

Example:

<div class="u-display--flex u-flex-wrap--wrap u-justify-content--center">
 <h1>Hello World<h1>
</div>

Class names syntax: u-{prop}--{value}

display.css:

.u-display--inline {
  display: inline;
}
.u-display--block {
  display: block;
}
.u-display--contents {
  display: contents;
}
.u-display--flex {
  display: flex;
}
.u-display--grid {
  display: grid;
}
.u-display--inline-block {
  display: inline-block;
}
.u-display--inline-flex {
  display: inline-flex;
}
.u-display--inline-grid {
  display: inline-grid;
}
.u-display--inline-table {
  display: inline-table;
}
.u-display--list-item {
  display: list-item;
}
.u-display--run-in {
  display: run-in;
}
.u-display--table {
  display: table;
}
.u-display--table-caption {
  display: table-caption;
}
.u-display--table-column-group {
  display: table-column-group;
}
.u-display--table-header-group {
  display: table-header-group;
}
.u-display--table-footer-group {
  display: table-footer-group;
}
.u-display--table-row-group {
  display: table-row-group;
}
.u-display--table-cell {
  display: table-cell;
}
.u-display--table-column {
  display: table-column;
}
.u-display--table-row {
  display: table-row;
}
.u-display--none {
  display: none;
}
.u-display--initial {
  display: initial;
}
.u-display--inherit {
  display: inherit;
}

Currently following props exists

align-content
align-items
align-self
box-sizing
display
flex-direction
flex-flow
flex-wrap
flex
float
font-weight
hyphens
justify-content
justify-items
justify-self
line-break
object-fit
order
overflow-wrap
overflow-x
overflow-y
overflow
place-content
place-items
place-self
position
resize
text-align
text-decoration
text-overflow
vertical-align
visibility
white-space
word-break
word-wrap

For Developing 👨‍💻

The CSS is generated from the following file: scripts/propertiesList.json

later on is the css scrapped from desired webpage, and with the help of a customized query selector

Examples:

{
  "name": "align-content",
  "selector": ".w3-table-all.notranslate tr td:nth-child(1)",
  "url": "https://www.w3schools.com/cssref/css3_pr_align-content.asp"
}
{
  "name": "font-weight",
  "selector": "#Values ~ dl dt > code:nth-child(1)",
  "ignoreValues": [
    "<number>"
  ],
  "url": "https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight"
},

In some cases we can use a custom helper to generate the classes

{
  "name": "flex",
  "from": 1,
  "to": 5
},