Installations
npm install postcss-short-border-radius
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>=6.0.0
Node Version
10.11.0
NPM Version
6.4.1
Score
68.9
Supply Chain
98.8
Quality
79
Maintenance
50
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
CSS (50.54%)
JavaScript (49.46%)
Developer
Download Statistics
Total Downloads
1,142,045
Last Day
127
Last Week
837
Last Month
10,331
Last Year
119,580
GitHub Statistics
3 Stars
5 Commits
1 Forks
5 Watching
1 Branches
6 Contributors
Bundle Size
74.85 kB
Minified
20.50 kB
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
1,142,045
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
PostCSS Short Border Radius
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}
Usage
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 |
---|
Options
prefix
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}
skip
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
- Info: project has a license file: LICENSE.md:0
- Info: FSF or OSI recognized license: Creative Commons Zero v1.0 Universal: LICENSE.md:0
Reason
Found 0/5 approved changesets -- score normalized to 0
Reason
project is archived
Details
- Warn: Repository is archived.
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 1 are checked with a SAST tool
Score
3
/10
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