rolldown-license-plugin weekly downloads statistics
By silverwind (2 listings) · npm · Vite plugins
Rolldown/Vite plugin to extract dependency licenses and optionally validate them. Zero dependencies, optimized for performance.
rolldown-license-plugin has 3,211 recorded weekly downloads on npm.
About rolldown-license-plugin
rolldown-license-plugin
Rolldown/Vite plugin to extract dependency licenses and optionally validate them. Zero dependencies, optimized for performance.
Usage
pnpm add -D rolldown-license-plugin
import {defineConfig} from "rolldown";
import {licensePlugin} from "rolldown-license-plugin";
export default defineConfig({
plugins: [
licensePlugin({
done(deps, context) {
context.emitFile({
type: "asset",
fileName: "licenses.txt",
source: deps.map(({name, version, license, licenseText}) => {
return `${name}@${version} - ${license}\n${licenseText}`;
}).join("\n\n"),
});
},
}),
],
});
For Vite, import defineConfig from vite instead of rolldown. Everything else is identical.
API
licensePlugin(opts)
done: (licenses: LicenseInfo[], context: PluginContext) => void | Promise<void>
Invoked duringgenerateBundlewith the collected licenses.contextis rolldown's plugin context, includingemitFile.match?: RegExp, default/^((UN)?LICEN(S|C)E|COPYING).*$/i
Matches license filenames in package directories.wrapLicenseText?: number
Word-wraplicenseTextto this column width.allow?: (license: LicenseInfo) => boolean
Returnfalseto reject a dependency. Rejections warn via the plugin context unless afailOn*option is set.failOnViolation?: boolean, defaultfalse
Throw instead of warning whenallowrejects a dependency that has a license.failOnUnlicensed?: boolean, defaultfalse
Throw instead of warning whenallowrejects a dependency that has no license.
LicenseInfo
type LicenseInfo = {
name: string; // package name
version: string; // package version, or ""
license: string; // SPDX license identifier from package.json, or ""
licenseText: string; // contents of LICENSE/COPYING file, or ""
};
wrap(text, width)
Word-wraps text to column width, returns the wrapped string.
© silverwind, distributed under BSD licence
Description from the npm listing.
- rolldown
- rolldown-plugin
- vite
- vite-plugin
- license
- licenses
- third-party
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (1)Similar npm Vite plugins plugins
All 20 rolldown-license-plugin alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/rolldown-license-plugin. First seen Oct 26, 2026; last successful collection Oct 26, 2026. See the methodology.