spdx-license-list

List of SPDX license identifiers.

To install, run:

haxelib install spdx-license-list 0.1.1 

See using Haxelib in Haxelib documentation for more information.

README.md

SPDX License List for Haxe

This library provides a partial view of the SPDX License List. Notably, it aims to include canonical names and short identifiers of all of the licenses on the list, but not their full text.

Current list version: 3.29.0 (2026-09-16).

Usage

import spdx.License;

var license1: License = License.MIT;
var license2: Null<License> = License.getById("GPL-3.0-or-later");
var license3: Null<License> = License.getByName("Mozilla Public License 2.0");

trace(license1.name);          // "MIT License"
trace(license1.id);            // "MIT"
trace(license1.isDeprecated);  // false
trace(license1.isOsiApproved); // true
trace(license1.isFsfLibre);    // true
import spdx.Expression;
import spdx.ExpressionTools;

var expr1: Null<Expression> = ExpressionTools.parse("MIT OR Apache-2.0");
var expr2: Null<Expression> = ExpressionTools.parse("GPL-2.0+ WITH Bootloader-exception")

Notices

"SPDX®" is a registered trademark of the Linux Foundation in the United States.

SPDX specification is provided under "Creative Commons Attribution License 3.0 Unported" (SPDX: CC-BY-3.0).

Contributors
frixuu
Version
0.1.1
Published
1 week ago
License
Public

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub

⌂