
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
postcss-content-width-unit
Advanced tools
PostCSS plugin which adds limit to vw unit.
.foo {
padding: 30rpx;
}
/* assuming contentMaxWidth = '1280px' */
.foo {
padding: 2.3437vw;
}
@media screen and (min-width: 1280px) {
.foo {
padding: 30px;
}
}
var contentWidthUnit = require('postcss-content-width-unit');
postcss([
contentWidthUnit({contentMaxWidth: '1280px'})
]);
contentMaxWidth: string
, requiredThe global max-width
value. Can be a variable name.
unit: string
, optional, default: rpx
Content width unit which would be converted to regular CSS units.
See PostCSS docs for examples for your environment.
FAQs
PostCSS plugin which adds limit to vw unit
The npm package postcss-content-width-unit receives a total of 3 weekly downloads. As such, postcss-content-width-unit popularity was classified as not popular.
We found that postcss-content-width-unit 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.