mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-07-13 11:46:03 +09:00
Clean up the oopsie. Rebuild the blank exercises.
This commit is contained in:
+29
-32
@@ -1,55 +1,52 @@
|
||||
# spdx-license-ids
|
||||
|
||||
[](https://www.npmjs.com/package/spdx-license-ids)
|
||||
[](https://wdp9fww0r9.execute-api.us-west-2.amazonaws.com/production/results/shinnn/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)
|
||||
## Installation
|
||||
|
||||
## Use as a JavaScript Library
|
||||
[Download JSON directly](https://raw.githubusercontent.com/shinnn/spdx-license-ids/master/index.json), or [use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/):
|
||||
|
||||
[](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/)
|
||||
## [Node.js](https://nodejs.org/) API
|
||||
|
||||
```sh
|
||||
bower install spdx-license-ids
|
||||
```
|
||||
### require('spdx-license-ids')
|
||||
|
||||
##### [Duo](http://duojs.org/)
|
||||
Type: `string[]`
|
||||
|
||||
All license IDs except for the currently deprecated ones.
|
||||
|
||||
```javascript
|
||||
const spdxLicenseIds = require('shinnn/spdx-license-ids');
|
||||
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
|
||||
```
|
||||
|
||||
#### Standalone
|
||||
### require('spdx-license-ids/deprecated')
|
||||
|
||||
[Download the script file directly.](https://raw.githubusercontent.com/shinnn/spdx-license-ids/master/spdx-license-ids-browser.js)
|
||||
Type: `string[]`
|
||||
|
||||
### API
|
||||
|
||||
#### spdxLicenseIds
|
||||
|
||||
Type: `Array` of `String`
|
||||
|
||||
It returns an array of SPDX license identifiers.
|
||||
Deprecated license IDs.
|
||||
|
||||
```javascript
|
||||
const spdxLicenseIds = require('spdx-license-ids'); //=> ['Glide', 'Abstyles', 'AFL-1.1', ... ]
|
||||
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
|
||||
|
||||
[The Unlicense](./LICENSE).
|
||||
[Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/deed)
|
||||
|
||||
Reference in New Issue
Block a user