davglass / license-checker

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

Remove version from module name #252

Open Stief86 opened 3 years ago

Stief86 commented 3 years ago

The license-format.json for the customPath looks:

{ "name": "", "version": false, "description": "", "licenses": false, "copyright": "", "licenseFile": false, "licenseText": false, "licenseModified": false, "path": false }

When I execute

npx license-checker --production --customPath license-format.json -json

I get the following json object:

...

"zone.js@0.10.3": { "licenses": "MIT", "repository": "https://github.com/angular/angular", "publisher": "Brian Ford", "name": "zone.js", "description": "Zones for JavaScript", "copyright": "Copyright (c) 2010-2020 Google LLC. http://angular.io/license" } ...

Although I removed the version (version:false) in the license-format.json, the version 0.10.3 is still available near the module "zone.js@0.10.3". How can I remove the version behind the @ ?