Small Fixes for Your Package's Licence Information

Licence scanners, registry pages and corporate approval processes all read your package's licence metadata before a human ever looks at your code. Errors there cause real friction: blocked adoption, confused users, compliance tickets. These tips focus on the metadata and files, not on choosing a licence; each one is a quick fix with a reason.

In the manifest

// package.json
{ "license": "MIT" }

# Cargo.toml
license = "MIT OR Apache-2.0"

# pyproject.toml
license = "BSD-3-Clause"
license-files = ["LICENSE"]

In the files

For bundled or vendored code

Check how it displays

After publishing, look at your package page on the registry. If the licence shows as unknown or non-standard, the identifier is probably wrong. Fixing it needs a new release, so catch it early with a pre-release check. More detail: SPDX identifiers how-to and third-party licence notices.