
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
fork from px2rem convert rpx unit to rem
This set of tools contains:
$ npm install -g rpx2rem
$ rpx2rem -o build src/*.css
Usage: rpx2rem [options] <file...>
Options:
-h, --help output usage information
-V, --version output the version number
-u, --remUnit [value] set `rem` unit value (default: 100)
-r, --remVersion [value] whether to generate rem version stylesheet (default: true)
-p, --remPrecision [value] set rem value precision (default: 6)
-o, --output [path] the output file dirname
var Rpx2rem = require('rpx2rem');
var rpx2remIns = new Rpx2rem([config]);
var originCssText = '...';
var newCssText = rpx2remIns.generateRem(originCssText); // generate rem version
One raw stylesheet: test.css
.selector {
width: 150rpx;
height: 64rpx;
font-size: 28rpx;
border: 1px solid #ddd;
}
rpx version: test.1.css
.selector {
width: 150rpx;
height: 64rpx;
font-size: 28rpx;
border: 1px solid #ddd;
}
rem version: test.1.css
.selector {
width: 1.5rem;
height: 0.64rem;
font-size: 0.28rem;
border: 1px solid #ddd;
}
comment hook + css parser
MIT
FAQs
convert rpx unit to rem
The npm package rpx2rem receives a total of 2 weekly downloads. As such, rpx2rem popularity was classified as not popular.
We found that rpx2rem 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.