# spdx-license-ids

> A list of SPDX license identifiers

Latest version **3.0.23** (published 2026-02-20) · CC0-1.0 license · 0 weekly downloads

## Install

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

## Health

**Score 53/100 (C)** — status: stable.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 3.0.23 |
| Published | 2026-02-20 |
| First published | 2015-05-02 |
| Weekly downloads | 0 |
| License | CC0-1.0 |
| TypeScript types | separate (@types/spdx-license-ids) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 37 |
| Author | Shinnosuke Watanabe |
| Maintainers | kemitchell, shinnn |
| Keywords | spdx, license, licenses, id, identifier, identifiers, json, array, oss |

## Links

- npm: https://www.npmjs.com/package/spdx-license-ids
- Repository: https://github.com/jslicense/spdx-license-ids
- Homepage: https://github.com/jslicense/spdx-license-ids#readme
- Issues: https://github.com/jslicense/spdx-license-ids/issues
- npm.io page: https://npm.io/package/spdx-license-ids

## 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

- 3.0.23 (latest) — 2026-02-20
- 3.0.0-1 (next) — 2018-01-26
- 3.0.22 — 2025-08-06
- 3.0.21 — 2025-01-15
- 3.0.20 — 2024-08-20
- 3.0.19 — 2024-08-20
- 3.0.18 — 2024-05-23
- 3.0.17 — 2024-02-09
- 3.0.16 — 2023-10-05
- 3.0.15 — 2023-09-19
- 3.0.14 — 2023-09-19
- 3.0.13 — 2023-03-10
- 3.0.12 — 2022-08-22
- 3.0.11 — 2021-11-14
- 3.0.10 — 2021-08-09
- … 21 more at https://npm.io/package/spdx-license-ids/versions

## README

# spdx-license-ids

[![npm version](https://img.shields.io/npm/v/spdx-license-ids.svg)](https://www.npmjs.com/package/spdx-license-ids)

A list of [SPDX license](https://spdx.org/licenses/) identifiers

## Installation

[Download JSON directly](https://raw.githubusercontent.com/jslicense/spdx-license-ids/main/index.json), or [use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/):

```
npm install spdx-license-ids
```

## [Node.js](https://nodejs.org/) API

### require('spdx-license-ids')

Type: `string[]`

All license IDs except for the currently deprecated ones.

```javascript
const ids = require('spdx-license-ids');
//=> ['0BSD', 'AAL', 'ADSL', 'AFL-1.1', 'AFL-1.2', 'AFL-2.0', 'AFL-2.1', 'AFL-3.0', 'AGPL-1.0-only', ...]

ids.includes('BSD-3-Clause'); //=> true
ids.includes('CC-BY-1.0'); //=> true

ids.includes('GPL-3.0'); //=> false
```

### require('spdx-license-ids/deprecated')

Type: `string[]`

Deprecated license IDs.

```javascript
const deprecatedIds = require('spdx-license-ids/deprecated');
//=> ['AGPL-1.0', 'AGPL-3.0', 'GFDL-1.1', 'GFDL-1.2', 'GFDL-1.3', 'GPL-1.0', 'GPL-2.0', ...]

deprecatedIds.includes('BSD-3-Clause'); //=> false
deprecatedIds.includes('CC-BY-1.0'); //=> false

deprecatedIds.includes('GPL-3.0'); //=> true
```

## License

[Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/deed)

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