Installations
npm install postcss-color-hex-alpha-2
Developer Guide
Typescript
No
Module System
N/A
Node Version
6.11.0
NPM Version
3.10.10
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (74.75%)
CSS (25.25%)
Developer
postcss
Download Statistics
Total Downloads
175
Last Day
1
Last Week
3
Last Month
6
Last Year
61
GitHub Statistics
28 Stars
35 Commits
10 Forks
7 Watching
1 Branches
22 Contributors
Bundle Size
102.55 kB
Minified
28.79 kB
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
175
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
3
postcss-color-hex-alpha ![Build Status](https://travis-ci.org/postcss/postcss-color-hex-alpha.png)
PostCSS plugin to transform W3C RGBA hexadecimal notations (#RRGGBBAA or #RGBA) to more compatible CSS (rgba()).
Installation
1$ npm install postcss-color-hex-alpha
Usage
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.
Contributing
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
Changelog
License
![Empty State](/_next/static/media/empty.e5fae2e5.png)
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
- Info: project has a license file: LICENSE.md:0
- Info: FSF or OSI recognized license: MIT License: LICENSE.md:0
Reason
Found 8/28 approved changesets -- score normalized to 2
Reason
project is archived
Details
- Warn: Repository is archived.
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/postcss/postcss-color-hex-alpha/test.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/postcss/postcss-color-hex-alpha/test.yml/master?enable=pin
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/test.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
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
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
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 12 are checked with a SAST tool
Score
3.6
/10
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