
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
postcss-plugin-cssvar-mod
Advanced tools
Change css variable name with suffix in rgba and rgb function.
简体中文 | English
给 rgb(a)函数中的 css 变量值加入后缀。
安装
npm i postcss-plugin-cssvar-mod
调用
const postcss = require("postcss");
const plugin = require("postcss-plugin-cssvar-mod");
const options = {};
postcss().use(plugin(options));
调用前
.test1 {
color: rgb(var(--theme-color));
}
调用后
.test1 {
color: rgb(var(--theme-color-rgb));
}
| 选项 | 说明 |
|---|---|
| suffix | 变量值的后缀值,默认是-rgb |
| functions | 函数名的正则字符串,默认是rgba? |
| include | 文件路径数组 |
| basePath | 文件的基准目录 |
| onFinish | 处理完成后的回调,参数是处理的 css 变量值的去重数组。如[{ oldValue: '--theme-color', newValue: '--theme-color-rgb' }] |
FAQs
Change css variable name with suffix in rgba and rgb function.
We found that postcss-plugin-cssvar-mod demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.