
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@csstools/postcss-media-minmax
Advanced tools
npm install @csstools/postcss-media-minmax --save-dev
PostCSS Media MinMax lets you use the range notation in media queries following the Media Queries 4 Specification.
@media screen and (width >=500px) and (width <=1200px) {
.bar {
display: block;
}
}
/* becomes */
@media screen and (min-width:500px) and (max-width:1200px) {
.bar {
display: block;
}
}
Add PostCSS Media MinMax to your project:
npm install postcss @csstools/postcss-media-minmax --save-dev
Use it as a PostCSS plugin:
const postcss = require('postcss');
const postcssMediaMinMax = require('@csstools/postcss-media-minmax');
postcss([
postcssMediaMinMax(/* pluginOptions */)
]).process(YOUR_CSS /*, processOptions */);
See prior work by yisibl here postcss-media-minmax To ensure long term maintenance and to provide the needed features this plugin was recreated based on yisibl's work.
postcss-custom-media is a PostCSS plugin that allows you to define custom media queries. While it doesn't provide the same `<=` and `>=` syntax, it allows for reusable and more readable media queries by defining them once and using them throughout your CSS.
FAQs
Use the range notation in CSS media queries
We found that @csstools/postcss-media-minmax demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.