56 lines
1.6 KiB
Markdown
Executable File
56 lines
1.6 KiB
Markdown
Executable File
# spdx-license-ids
|
|
|
|
A list of [SPDX license](https://spdx.org/licenses/) identifiers
|
|
|
|
[**Download JSON**](https://raw.githubusercontent.com/shinnn/spdx-license-ids/master/spdx-license-ids.json)
|
|
|
|
## Use as a JavaScript Library
|
|
|
|
[](https://www.npmjs.org/package/spdx-license-ids)
|
|
[](https://github.com/shinnn/spdx-license-ids/releases)
|
|
[](https://travis-ci.org/shinnn/spdx-license-ids)
|
|
[](https://coveralls.io/r/shinnn/spdx-license-ids)
|
|
[](https://david-dm.org/shinnn/spdx-license-ids#info=devDependencies)
|
|
|
|
### Installation
|
|
|
|
#### Package managers
|
|
|
|
##### [npm](https://www.npmjs.com/)
|
|
|
|
```sh
|
|
npm install spdx-license-ids
|
|
```
|
|
|
|
##### [bower](http://bower.io/)
|
|
|
|
```sh
|
|
bower install spdx-license-ids
|
|
```
|
|
|
|
##### [Duo](http://duojs.org/)
|
|
|
|
```javascript
|
|
const spdxLicenseIds = require('shinnn/spdx-license-ids');
|
|
```
|
|
|
|
#### Standalone
|
|
|
|
[Download the script file directly.](https://raw.githubusercontent.com/shinnn/spdx-license-ids/master/spdx-license-ids-browser.js)
|
|
|
|
### API
|
|
|
|
#### spdxLicenseIds
|
|
|
|
Type: `Array` of `String`
|
|
|
|
It returns an array of SPDX license identifiers.
|
|
|
|
```javascript
|
|
const spdxLicenseIds = require('spdx-license-ids'); //=> ['Glide', 'Abstyles', 'AFL-1.1', ... ]
|
|
```
|
|
|
|
## License
|
|
|
|
[The Unlicense](./LICENSE).
|