
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
unplugin-utils
Advanced tools
A set of utility functions commonly used by unplugins.
Thanks to @rollup/pluginutils. This projects is heavily copied from it.
npm i unplugin-utils
export default function myPlugin(options = {}) {
const filter = createFilter(options.include, options.exclude)
return {
transform(code, id) {
if (!filter(id)) return
// proceed with the transformation...
},
}
}
import { normalizePath } from 'unplugin-utils'
normalizePath(String.raw`foo\bar`) // 'foo/bar'
normalizePath('foo/bar') // 'foo/bar'
MIT License © 2025-PRESENT Kevin Deng
MIT Copyright (c) 2019 RollupJS Plugin Contributors (https://github.com/rollup/plugins/graphs/contributors)
rollup-pluginutils provides utility functions for Rollup plugins, such as creating filters and handling options. While it is specific to Rollup, unplugin-utils is designed to work with multiple build tools, offering a more universal approach.
vite-plugin-utils offers utility functions specifically for Vite plugins. It provides similar functionalities to unplugin-utils but is tailored for Vite, whereas unplugin-utils supports a broader range of build tools.
FAQs
A set of utility functions commonly used by unplugins.
The npm package unplugin-utils receives a total of 1,713,937 weekly downloads. As such, unplugin-utils popularity was classified as popular.
We found that unplugin-utils demonstrated a healthy version release cadence and project activity because the last version was released less than 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
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.