Codebase list node-spdx-exceptions / b711dbb
New upstream version 2.3.0 Xavier Guimard 3 years ago
3 changed file(s) with 47 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
0 #!/usr/bin/env node
1 var fs = require('fs')
2 var https = require('https')
3
4 https.request('https://spdx.org/licenses/exceptions.json', function (response) {
5 if (response.statusCode !== 200) {
6 console.error('spdx.org responded ' + response.statusCode)
7 process.exit(1)
8 }
9 var chunks = []
10 response
11 .on('data', function (chunk) {
12 chunks.push(chunk)
13 })
14 .once('end', function () {
15 var buffer = Buffer.concat(chunks)
16 var parsed = JSON.parse(buffer)
17 var output = parsed.exceptions
18 .map(function (exception) {
19 return exception.licenseExceptionId
20 })
21 .sort(function (a, b) {
22 return a.toLowerCase().localeCompare(b.toLowerCase())
23 })
24 fs.writeFile(
25 'index.json',
26 JSON.stringify(output, null, 2) + '\n',
27 function (error) {
28 if (error) throw error
29 }
30 )
31 })
32 }).end()
1414 "GCC-exception-2.0",
1515 "GCC-exception-3.1",
1616 "gnu-javamail-exception",
17 "GPL-3.0-linking-exception",
18 "GPL-3.0-linking-source-exception",
19 "GPL-CC-1.0",
1720 "i2p-gpl-java-exception",
1821 "Libtool-exception",
1922 "Linux-syscall-note",
2124 "LZMA-exception",
2225 "mif-exception",
2326 "Nokia-Qt-exception-1.1",
27 "OCaml-LGPL-linking-exception",
2428 "OCCT-exception-1.0",
2529 "OpenJDK-assembly-exception-1.0",
2630 "openvpn-openssl-exception",
2832 "Qt-GPL-exception-1.0",
2933 "Qt-LGPL-exception-1.1",
3034 "Qwt-exception-1.0",
35 "Swift-exception",
3136 "u-boot-exception-2.0",
37 "Universal-FOSS-exception-1.0",
3238 "WxWindows-exception-3.1"
3339 ]
00 {
11 "name": "spdx-exceptions",
22 "description": "list of SPDX standard license exceptions",
3 "version": "2.2.0",
3 "version": "2.3.0",
44 "author": "The Linux Foundation",
55 "contributors": [
66 "Kyle E. Mitchell <kyle@kemitchell.com> (https://kemitchell.com/)"
77 ],
88 "license": "CC-BY-3.0",
9 "repository": "kemitchell/spdx-exceptions.json"
9 "repository": "kemitchell/spdx-exceptions.json",
10 "files": [
11 "index.json"
12 ],
13 "scripts": {
14 "build": "node build.js"
15 }
1016 }