
Security News
Cline CLI npm Package Compromised via Suspected Cache Poisoning Attack
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.
@frankhoodbs/breakpoints
Advanced tools
A Vue 3 utility that offers a streamlined interface for working with CSS breakpoints, leveraging CSS custom properties (or CSS variables) defined within the :root selector. This utility taps into the css-custom-properties-list dependency to extract the custom properties and provides handy methods to manage media queries within Vue.
To get started, first import and initialize the Breakpoints class:
import { Breakpoints } from '@your-package/vue-breakpoints-utility';
const breakpointsUtility = new Breakpoints(document.documentElement, document.styleSheets);
You can easily get the current active breakpoint:
console.log(breakpointsUtility.currentBreakpoint.value); // e.g. 'md'
The utility offers a range of methods designed to facilitate media query management. Here are some of the most common uses:
if (breakpointsUtility.utilityMethods.mdAndUp.value) {
// Code for medium devices and above
}
if (breakpointsUtility.utilityMethods.lgAndDown.value) {
// Code for large devices and below
}
if (breakpointsUtility.utilityMethods.lgOnly.value) {
// Code exclusive to large devices
}
These utilities harness Vue's reactivity, ensuring your UI or logic adapts in real-time to viewport changes. This should give a comprehensive guide on the utility's usage, including the main methods that were mentioned in the code.
@vueuse/core: Used for harnessing the reactivity of Vue 3.@frankhoodbs/css-custom-properties-list: Employed to extract CSS custom properties.FAQs
Simple utility to handle breakpoints responsiveness
The npm package @frankhoodbs/breakpoints receives a total of 60 weekly downloads. As such, @frankhoodbs/breakpoints popularity was classified as not popular.
We found that @frankhoodbs/breakpoints demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.