Gathering detailed insights and metrics for postcss-color-hex-alpha-2
Gathering detailed insights and metrics for postcss-color-hex-alpha-2
npm install postcss-color-hex-alpha-2
Typescript
Module System
Node Version
NPM Version
JavaScript (74.75%)
CSS (25.25%)
Total Downloads
175
Last Day
1
Last Week
3
Last Month
6
Last Year
61
28 Stars
35 Commits
10 Forks
7 Watching
1 Branches
22 Contributors
Minified
Minified + Gzipped
Latest Version
3.0.0
Package Id
postcss-color-hex-alpha-2@3.0.0
Size
2.63 kB
NPM Version
3.10.10
Node Version
6.11.0
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
0%
3
Compared to previous week
Last month
200%
6
Compared to previous month
Last year
-4.7%
61
Compared to previous year
3
PostCSS plugin to transform W3C RGBA hexadecimal notations (#RRGGBBAA or #RGBA) to more compatible CSS (rgba()).
1$ npm install postcss-color-hex-alpha
1// dependencies 2var fs = require("fs") 3var postcss = require("postcss") 4var colorHexAlpha = require("postcss-color-hex-alpha") 5 6// css to be processed 7var css = fs.readFileSync("input.css", "utf8") 8 9// process css 10var output = postcss() 11 .use(colorHexAlpha()) 12 .process(css) 13 .css
Using this input.css
:
1body { 2 background: #9d9c 3} 4
you will get:
1body { 2 background: rgba(153, 221, 153, 0.8) 3}
Checkout tests for more examples.
Work on a branch, install dev-dependencies, respect coding style & run tests before submitting a bug fix or a feature.
$ git clone https://github.com/postcss/postcss-color-hex-alpha.git
$ git checkout -b patch-1
$ npm install
$ npm test
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 8/28 approved changesets -- score normalized to 2
Reason
project is archived
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-01-20
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