How to use SPDX
- 1. Pick an SPDX id. MIT and Apache include a short stub.
- 2. Set year and holder. Inserted into the copyright line.
- 3. Copy LICENSE. Confirm against the official SPDX text before you ship.
- 4. Identifier-only ids. GPL and others emit SPDX-License-Identifier plus copyright.
About this tool
Open-source release starts with a LICENSE file. This picker emits MIT, Apache-2.0, and Unlicense stubs, or an SPDX-License-Identifier line for other common ids. It is not legal advice and not a substitute for the full SPDX text.
Full text
GPL and MPL stubs are identifiers only. Fetch the official license if you need the complete terms.
REUSE / SPDX in files
Add SPDX-License-Identifier headers in source separately.
Code examples
Header
SPDX-License-Identifier: MIT