Optionalfallback?: { name?: string; version?: string }Fallback values when name or version are missing
Package metadata used to construct the banner
OptionalprefixVersion?: stringPrefix applied before the version.
Optionalshebang?: false | ShebangOptional shebang line (for CLI binaries).
Optionalstyle?: "js"Banner comment style.
Currently supports:
jsOptionaluseDisplayName?: booleanPrefer displayName over name when available
A formatted banner string suitable for insertion at the top of bundled files.
This utility creates a formatted banner typically used at the top of bundled files (e.g., Rollup, tsdown, esbuild, webpack outputs).
The banner includes:
Repository URLs are normalized by removing common prefixes such as git+ and suffixes like .git.
Generate a production banner comment from package metadata.