
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
postcss-pxtorpx
Advanced tools
Postcss 插件,用于将 px 单位转换成微信小程序特有的单位 rpx
受 postcss-pxtorem 启发,感谢 cute
请参考 postcss-pxtorem
参数 rootValue 去除了,增加了 multiplier 参数
multiplier 默认是 1
示例: multiplier = 2
input
.class {
font-size: 16px;
}
output
.class {
font-size: 32rpx; /* 16 乘以 2 */
}
把 px
单位写成 Px
或者 PX
,此写法仍被浏览器接受
FAQs
A CSS post-processor that converts px to rpx.
We found that postcss-pxtorpx 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.