</>PackageGraphPackageGraph

css-shorthand-properties

npmv1.1.2

A simple list of CSS shorthand properties and which longhand properties they expand to

Adopt with care

css-shorthand-properties is usable, with caveats. Last published 713 days ago.

  • AAdoption: grade A, Excellent.

    1M downloads per week and 1 known dependents.

  • CMaintenance: grade C, Fair — worth a look.

    Last published 713 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 11 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding css-shorthand-properties to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

11 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the css-shorthand-properties README.

cssShorthandProps.isShorthand('border');  // true
cssShorthandProps.isShorthand('display');  // false

css-shorthand-properties vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
css-shorthand-propertiesthis page1M1MIT1 year ago
postcss249.3M7MIT16 hours ago
csstype142.8M2MIT19 hours ago
diff124.1M4BSD-3-Clause15 hours ago
@csstools/css-calc65.8M3MIT16 hours ago
react-style-singleton59.1M2MIT17 hours ago

Used by

Popular packages that depend on css-shorthand-properties.

Relationship graph

Dependencies (left) and dependents (right) of css-shorthand-properties.

webdriveriocss-shorthand-pro…
css-shorthand-properties dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 1083 days apart.

Recent versions of css-shorthand-properties
VersionPublishedSizeLicense
1.1.2latest1 year ago11 KBMIT
1.1.18 years ago11 KBMIT
1.1.08 years agoMIT
1.0.011 years agoMIT
0.1.012 years agoMIT

Overview

css-shorthand-properties is an npm package that a simple list of CSS shorthand properties and which longhand properties they expand to. It is very popular, with about 1M downloads per week and 1 known dependents in the graph. The latest version is 1.1.2, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need a simple list of CSS shorthand properties and which longhand properties they expand to and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (1M weekly downloads).
  • Clear open-source license (MIT).
  • Zero runtime dependencies — minimal footprint.

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use css-shorthand-properties?

css-shorthand-properties is usable, with caveats. Last published 713 days ago.

How do I install css-shorthand-properties?

Run `npm install css-shorthand-properties` to add css-shorthand-properties to your npm project.

What license is css-shorthand-properties released under?

css-shorthand-properties is distributed under the MIT license.

How popular is css-shorthand-properties?

css-shorthand-properties has approximately 1,035,800 downloads per week and 1 known dependent packages.

Is css-shorthand-properties still maintained?

The most recent release of css-shorthand-properties (v1.1.2) was published 1 year ago.

Does css-shorthand-properties run install scripts?

No. css-shorthand-properties does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.