
Research
/Security News
Compromised npm Packages in the AsyncAPI Namespace Deliver Miasma Botnet Loader
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.
@sohu-bpd/unplugin-banner
Advanced tools
An example unplugin-based banner plugin for Vite, Rollup, webpack, Rspack, and Rolldown.
Example unplugin-based banner plugin for Vite, Rollup, webpack, Rspack, and Rolldown.
The package root exports the unplugin factory object. In app config, prefer the host-specific subpaths:
@sohu-bpd/unplugin-banner/vite@sohu-bpd/unplugin-banner/rollup@sohu-bpd/unplugin-banner/webpack@sohu-bpd/unplugin-banner/rspack@sohu-bpd/unplugin-banner/rolldownRsbuild should use the /rspack entry through tools.rspack; there is no separate ./rsbuild export.
import { defineConfig } from "vite";
import banner from "@sohu-bpd/unplugin-banner/vite";
export default defineConfig({
plugins: [banner({ banner: "built with @sohu-bpd/unplugin-banner" })]
});
import banner from "@sohu-bpd/unplugin-banner/rollup";
export default {
plugins: [banner({ banner: "built with @sohu-bpd/unplugin-banner" })]
};
@sohu-bpd/unplugin-banner/webpack in webpack configs.@sohu-bpd/unplugin-banner/rspack in Rspack configs and in Rsbuild via tools.rspack.plugins.@sohu-bpd/unplugin-banner/rolldown in Rolldown configs.import banner from "@sohu-bpd/unplugin-banner/rspack";
export default {
tools: {
rspack: {
plugins: [banner({ banner: "built with @sohu-bpd/unplugin-banner" })]
}
}
};
banner: required string prepended as a block comment to transformed script modulesFAQs
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
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.