davglass / license-checker

Check NPM package licenses
Other
1.6k stars 215 forks source link

License not parsed correctly #251

Open saravanabalagi opened 3 years ago

saravanabalagi commented 3 years ago

How to reproduce?

npx license-checker --packages 'npyjs@0.1.3'

Output

npx: installed 57 in 1.924s
└─ npyjs@0.1.3
   ├─ licenses: Custom: https://img.shields.io/npm/v/npyjs.svg
   ├─ repository: https://github.com/jhuapl-boss/npyjs
   ├─ publisher: Jordan Matelsky
   ├─ email: j6k4m8@gmail.com
   ├─ path: /censored/node_modules/npyjs
   └─ licenseFile: /censored/node_modules/npyjs/LICENSE

Expected Output

npx: installed 57 in 1.924s
└─ npyjs@0.1.3
   ├─ licenses: Apache-2.0
   ├─ repository: https://github.com/jhuapl-boss/npyjs
   ├─ publisher: Jordan Matelsky
   ├─ email: j6k4m8@gmail.com
   ├─ path: /censored/node_modules/npyjs
   └─ licenseFile: /censored/node_modules/npyjs/LICENSE

Why expected output

Debug logs

  license-checker:log scanning /censored +0ms