
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
postcss-fluid
Advanced tools
Fluid css value
// Add plugin to postcss config
postcss([
// (plugins) Sass, Nesting, Imports ...
require('postcss-fluid')({
// Defaults:
min: '320px', // Min media size
max: '1200px', // Max media size
functionName: 'fluid', // function name, may be anything
}),
// (optimization) autoprefixer, postcss-clean, css-mqpacker ...
]);
/* usage in css */
[selector] {
...
[property]: *values* fluid([min], [max]) *values*;
...
}
body {
padding: 1rem fluid(10px, 20px) 2rem;
font-size: fluid(16px, 30px);
}
body {
padding: 1rem calc(10px + 10 * (100vw - 320px) / 880) 2rem;
font-size: calc(16px + 14 * (100vw - 320px) / 880);
}
@media (max-width: 320px) {
body {
padding: 1rem 10px 2rem;
font-size: 16px;
}
}
@media (min-width: 1200px) {
body {
padding: 1rem 20px 2rem;
font-size: 30px;
}
}
FAQs
Fluid css value
The npm package postcss-fluid receives a total of 110 weekly downloads. As such, postcss-fluid popularity was classified as not popular.
We found that postcss-fluid 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.