mwittig / npm-license-crawler

Analyzes license information for multiple node.js modules (package.json files) as part of your software project.
BSD 3-Clause "New" or "Revised" License
234 stars 45 forks source link

--omitVersion removes scoped packages #34

Closed thibmaek closed 5 years ago

thibmaek commented 5 years ago

Output with ./node_modules/.bin/npm-license-crawler --onlyDirectDependencies --dependencies --production --json f.json:

{
    "@react-native-community/netinfo@2.0.3": {
        "licenses": "MIT",
        "repository": "https://github.com/react-native-community/react-native-netinfo",
        "licenseUrl": "https://github.com/react-native-community/react-native-netinfo/raw/master/LICENSE",
        "parents": "daikin"
    },
    ...
}

Output with: ./node_modules/.bin/npm-license-crawler --onlyDirectDependencies --dependencies --omitVersion --production --json f.json:

{
   "": {
        "licenses": "MIT",
        "repository": "https://github.com/react-native-community/react-native-netinfo",
        "licenseUrl": "https://github.com/react-native-community/react-native-netinfo/raw/master/LICENSE",
        "parents": "daikin"
    },
    ...
}
mwittig commented 5 years ago

Thanks, for the report. I'll have a look into this asap

bitcrumb commented 5 years ago

This was already fixed in this commit: https://github.com/mwittig/npm-license-crawler/commit/c756abf730f768531318ce755176c79d768eef2f

Apparently we were using an outdated version of npm-license-crawler (0.1.9) which did not contain this fix yet. Updating fixed the issue. This can be closed.