davglass / license-checker

Check NPM package licenses

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove version from module name

Stief86 opened this issue · comments

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 @ ?