File tree 2 files changed +37
-0
lines changed
2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 1
1
# @clearlydefined/spdx
2
+
3
+ ClearlyDefined focused SPDX utility library.
4
+
5
+ ## Install
6
+
7
+ ```
8
+ npm install @clearlydefined/spdx
9
+ ```
10
+
11
+ ``` js
12
+ const SPDX = require (' @clearlydefined/spdx' )
13
+
14
+ SPDX .parse (' MIT' )
15
+ SPDX .stringify ({ license: ' MIT' })
16
+ SPDX .satisfies (' MIT' , ' MIT OR Apache-2.0' )
17
+ SPDX .merge (' MIT' , ' Apache-2.0' , ' AND' )
18
+ SPDX .expand (' MIT or Apache-2.0' )
19
+ SPDX .normalize (' mit' )
20
+ SPDX .lookupByName (' Apache License 2.0' )
21
+ ```
22
+
23
+ ## Local development
24
+
25
+ ```
26
+ git clone https://github.com/clearlydefined/spdx
27
+ cd spdx
28
+ npm i
29
+ npm test
30
+ ```
Original file line number Diff line number Diff line change 7
7
"type" : " git" ,
8
8
"url" : " git+https://github.com/clearlydefined/spdx.git"
9
9
},
10
+ "main" : " index.js" ,
11
+ "keywords" : [
12
+ " spdx"
13
+ ],
14
+ "bugs" : {
15
+ "url" : " https://github.com/clearlydefined/spdx/issues"
16
+ },
17
+ "homepage" : " https://github.com/clearlydefined/spdx" ,
10
18
"scripts" : {
11
19
"test" : " nyc mocha \" test.js\" && eslint ."
12
20
},
You can’t perform that action at this time.
0 commit comments