css-shorthand-properties
npmv1.1.2A 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 712 days ago.
- AAdoption: grade A, Excellent.
2.2M downloads per week and 1 known dependents.
- CMaintenance: grade C, Fair — worth a look.
Last published 712 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.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
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'); // falsecss-shorthand-properties vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| css-shorthand-propertiesthis page | 2.2M | 1 | MIT | 1 year ago |
| postcss | 280.1M | 7 | MIT | 4 days ago |
| csstype | 160.9M | 2 | MIT | 4 days ago |
| diff | 144.5M | 4 | BSD-3-Clause | 4 days ago |
| css.escape | 54.6M | 2 | MIT | 4 days ago |
| color | 51.9M | 3 | MIT | 4 days ago |
Used by
Popular packages that depend on css-shorthand-properties.
Relationship graph
Dependencies (left) and dependents (right) of css-shorthand-properties.
Frequently installed together
A high-level API to control headless Chrome over the DevTools Protocol
Check if a value is a plain object
Serialize/deserialize an error into a plain object
The fast, flexible & elegant library for parsing and manipulating HTML and XML.
Create, read and edit .zip files with JavaScript http://stuartk.com/jszip
The lodash method `_.cloneDeep` exported as a module.
TypeScript definitions for @sinonjs/fake-timers
Utility package providing type information for a variety of WebdriverIO interfaces
A WDIO helper utility to provide several utility functions used across the project.
CSS value parser
React Element Selector Query (resq) - Query React components and children by selector (component name)
lightweight rgb/rgba to hex parser
Release history
No releases in the last two years, typically about 1083 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.1.2latest | 1 year ago | 11 KB | MIT |
| 1.1.1 | 8 years ago | 11 KB | MIT |
| 1.1.0 | 8 years ago | — | MIT |
| 1.0.0 | 11 years ago | — | MIT |
| 0.1.0 | 12 years ago | — | MIT |
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 2.2M 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 (2.2M 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
Frequently asked questions
Should I use css-shorthand-properties?
css-shorthand-properties is usable, with caveats. Last published 712 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 2,154,506 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.