Sha256: 48491ebe32b2eec115aa03d80d7bcb15d10c4cd20d8349ba6ca771a6a6a83a15

Contents?: true

Size: 1.54 KB

Versions: 39

Compression:

Stored size: 1.54 KB

Contents

# spdx-license-ids

[![npm version](https://img.shields.io/npm/v/spdx-license-ids.svg)](https://www.npmjs.com/package/spdx-license-ids)
[![Github Actions](https://action-badges.now.sh/jslicense/spdx-license-ids)](https://wdp9fww0r9.execute-api.us-west-2.amazonaws.com/production/results/jslicense/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)

Version data entries

39 entries across 39 versions & 4 rubygems

Version Path
rapid_stack-0.2.0 templates/frontend/node_modules/spdx-license-ids/README.md
rapid_stack-0.1.1 templates/FrontEnd/node_modules/spdx-license-ids/README.md
rapid_stack-0.1.0 templates/FrontEnd/node_modules/spdx-license-ids/README.md
immosquare-cleaner-0.1.60 node_modules/spdx-license-ids/README.md
immosquare-cleaner-0.1.59 node_modules/spdx-license-ids/README.md
immosquare-cleaner-0.1.58 node_modules/spdx-license-ids/README.md
immosquare-cleaner-0.1.57 node_modules/spdx-license-ids/README.md
immosquare-cleaner-0.1.56 node_modules/spdx-license-ids/README.md
immosquare-cleaner-0.1.55 node_modules/spdx-license-ids/README.md
immosquare-cleaner-0.1.54 node_modules/spdx-license-ids/README.md
immosquare-cleaner-0.1.53 node_modules/spdx-license-ids/README.md
immosquare-cleaner-0.1.52 node_modules/spdx-license-ids/README.md
trusty-cms-6.3.1 node_modules/spdx-license-ids/README.md
immosquare-cleaner-0.1.51 node_modules/spdx-license-ids/README.md
immosquare-cleaner-0.1.50 node_modules/spdx-license-ids/README.md
immosquare-cleaner-0.1.49 node_modules/spdx-license-ids/README.md
immosquare-cleaner-0.1.48 node_modules/spdx-license-ids/README.md
immosquare-cleaner-0.1.47 node_modules/spdx-license-ids/README.md
immosquare-cleaner-0.1.46 node_modules/spdx-license-ids/README.md
pcp-server-ruby-sdk-0.0.6 node_modules/spdx-license-ids/README.md