Gathering detailed insights and metrics for postcss-short-border-radius
Gathering detailed insights and metrics for postcss-short-border-radius
npm install postcss-short-border-radius
Typescript
Module System
Min. Node Version
Node Version
NPM Version
68.9
Supply Chain
98.8
Quality
79
Maintenance
50
Vulnerability
100
License
CSS (50.54%)
JavaScript (49.46%)
Total Downloads
1,142,045
Last Day
127
Last Week
837
Last Month
10,331
Last Year
119,580
3 Stars
5 Commits
1 Forks
5 Watching
1 Branches
6 Contributors
Minified
Minified + Gzipped
Latest Version
3.0.0
Package Id
postcss-short-border-radius@3.0.0
Size
6.25 kB
NPM Version
6.4.1
Node Version
10.11.0
Publised On
10 Oct 2018
Cumulative downloads
Total Downloads
Last day
-51.7%
127
Compared to previous day
Last week
-67.6%
837
Compared to previous week
Last month
0.4%
10,331
Compared to previous month
Last year
-37%
119,580
Compared to previous year
PostCSS Short Border Radius lets you use border-top-radius
,
border-right-radius
, border-bottom-radius
, and border-left-radius
properties in CSS, following the 1-to-2 syntax.
1.example-1 { 2 border-top-radius: 10px; 3} 4 5.example-2 { 6 border-top-radius: 10px 5px; 7} 8 9/* becomes */ 10 11.example-1 { 12 border-top-left-radius: 10px; 13 border-top-right-radius: 10px; 14} 15 16.example-2 { 17 border-top-left-radius: 10px; 18 border-top-right-radius: 5px; 19}
Add PostCSS Short Border Radius to your project:
1npm install postcss-short-border-radius --save-dev
Use PostCSS Short Border Radius to process your CSS:
1const postcssShortBorderRadius = require('postcss-short-border-radius'); 2 3postcssShortBorderRadius.process(YOUR_CSS /*, processOptions, pluginOptions */);
Or use it as a PostCSS plugin:
1const postcss = require('postcss'); 2const postcssShortBorderRadius = require('postcss-short-border-radius'); 3 4postcss([ 5 postcssShortBorderRadius(/* pluginOptions */) 6]).process(YOUR_CSS /*, processOptions */);
PostCSS Short Border Radius runs in all Node environments, with special instructions for:
Node | PostCSS CLI | Webpack | Create React App | Gulp | Grunt |
---|
The prefix
option defines a prefix required by properties being transformed.
Wrapping dashes are automatically applied, so that x
would transform
-x-border-top-radius
.
1postcssShortBorderRadius({ prefix: 'x' });
1.example-1 { 2 -x-border-top-radius: 10px; 3} 4 5/* becomes */ 6 7.example-1 { 8 border-top-left-radius: 10px; 9 border-top-right-radius: 10px; 10}
The skip
option defines the skip token used to ignore portions of the
shorthand.
1postcssShortBorderRadius({ skip: '-' });
1.example-1 { 2 -x-border-top-radius: - 10px; 3} 4 5/* becomes */ 6 7.example-1 { 8 border-top-right-radius: 10px; 9}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/5 approved changesets -- score normalized to 0
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-01-06
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More