# spdx-license-list

> List of SPDX licenses

Latest version **6.12.0** (published 2026-07-24) · CC0-1.0 license · 0 weekly downloads

## Install

```sh
npm install spdx-license-list
pnpm add spdx-license-list
yarn add spdx-license-list
bun add spdx-license-list
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support; large bundle.

## Facts

| | |
|---|---|
| Version | 6.12.0 |
| Published | 2026-07-24 |
| First published | 2014-08-05 |
| Weekly downloads | 0 |
| License | CC0-1.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Unpacked size | 10 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | spdx, license, licenses, mit, bsd, list, open source, software, id, ids, identifiers, set |

## Links

- npm: https://www.npmjs.com/package/spdx-license-list
- Repository: https://github.com/sindresorhus/spdx-license-list
- Homepage: https://github.com/sindresorhus/spdx-license-list#readme
- Issues: https://github.com/sindresorhus/spdx-license-list/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/spdx-license-list

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 6.12.0 (latest) — 2026-07-24
- 6.11.0 — 2026-01-14
- 6.10.0 — 2025-04-04
- 6.9.0 — 2024-02-21
- 6.8.0 — 2023-10-30
- 6.7.0 — 2023-08-31
- 6.6.0 — 2022-06-09
- 6.5.0 — 2022-04-04
- 6.4.0 — 2021-01-24
- 6.3.0 — 2020-09-16
- 6.2.0 — 2020-04-16
- 6.1.0 — 2019-08-07
- 6.0.0 — 2019-03-27
- 5.0.0 — 2018-11-08
- 4.1.0 — 2018-07-19
- … 7 more at https://npm.io/package/spdx-license-list/versions

## README

# spdx-license-list

> List of [SPDX licenses](https://spdx.org/licenses/)

The lists of licenses are just JSON files and can be used anywhere.

- [spdx.json](spdx.json) contains just license metadata
- [spdx-full.json](spdx-full.json) includes the license text too
- [spdx-simple.json](spdx-simple.json) only contains the license IDs

*Using SPDX License List version 3.28.0 (2026-02-20)*

## Install

```sh
npm install spdx-license-list
```

## Usage

```js
const spdxLicenseList = require('spdx-license-list');

console.log(spdxLicenseList.MIT);
/*
{
	name: 'MIT License',
	url: 'http://www.opensource.org/licenses/MIT',
	osiApproved: true
}
*/
```

```js
const mitLicense = require('spdx-license-list/licenses/MIT');

console.log(mitLicense.licenseText);
//=> 'MIT License\r\n\r\nCopyright (c) <year> <copyright holders> …'
```

You can also get a version with the licence text included:

```js
const spdxLicenseList = require('spdx-license-list/full');

console.log(spdxLicenseList.MIT);
/*
{
	name: 'MIT License',
	url: 'http://www.opensource.org/licenses/MIT',
	osiApproved: true,
	licenseText: '…'
}
*/
```

Or just the license IDs as a `Set`:

```js
const spdxLicenseList = require('spdx-license-list/simple');

console.log(spdxLicenseList);
//=> Set {'Glide', 'Abstyles', …}
```

## API

### spdxLicenseList

Type: `object`

The licenses are indexed by their identifier and contains a `name` property with the full name of the license, `url` with the URL to the license, and `osiApproved` boolean for whether the license is [OSI Approved](https://opensource.org/licenses).

---
_Source: https://npm.io/package/spdx-license-list · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
