{"library":"rollup-plugin-license","title":"rollup-plugin-license","description":"Rollup plugin that adds a license banner to the final bundle and generates a file listing all third-party licenses. Current stable version is 3.7.1, released with support for Rollup 4.x peer dependency. Key differentiators: supports multiple banner comment styles (regular, ignored, slash, none), file or string content with Lodash template interpolation, third-party license output with version deduplication, and custom data injection. Widely used for compliance in open-source and enterprise bundles. Ships TypeScript definitions. Maintained actively with regular updates.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-license"],"cli":null},"imports":["import license from 'rollup-plugin-license'","import type { LicenseOptions } from 'rollup-plugin-license'","const license = await import('rollup-plugin-license').then(m => m.default)"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js (ESM)\nimport license from 'rollup-plugin-license'\nimport path from 'node:path'\n\nexport default {\n  input: 'src/main.js',\n  output: { file: 'dist/bundle.js', format: 'esm' },\n  plugins: [\n    license({\n      sourcemap: true,\n      banner: {\n        content: {\n          file: path.resolve('LICENSE'),\n          encoding: 'utf-8',\n        },\n      },\n      thirdParty: {\n        includePrivate: false,\n        includeSelf: true,\n        output: {\n          file: path.resolve('dist/dependencies.txt'),\n        },\n      },\n    }),\n  ],\n}","lang":"javascript","description":"Shows a minimal setup with banner from file and third-party license output.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}