npm_license_check
Check licenses of a package and its direct production dependencies, flagging missing or non-standard ones. Specify custom allowed SPDX identifiers as needed.
Instructions
Check the license of a package and its direct production dependencies. Flags missing or non-standard licenses. Matches single SPDX license identifiers case-insensitively (so 'mit' and 'MIT' both match). SPDX expressions like '(MIT OR Apache-2.0)' are NOT decomposed — they are flagged unless added to allowed verbatim.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Package name | |
| allowed | No | SPDX license identifiers to treat as allowed (default: MIT, ISC, BSD-2-Clause, BSD-3-Clause, Apache-2.0, 0BSD, Unlicense) | |
| version | No | Semver version or dist-tag (default: 'latest') |