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

Include @-named dependencies with --onlyDirectDependencies #21

Closed jamiemjennings closed 6 years ago

jamiemjennings commented 6 years ago

Fixes https://github.com/mwittig/npm-license-crawler/issues/20

Output is now:

node ../npm-license-crawler/bin/npm-license-crawler --onlyDirectDependencies
...
├─ @godaddy/terminus@2.2.0
│  ├─ licenses: MIT
│  ├─ repository: https://github.com/godaddy/terminus
│  ├─ licenseUrl: https://github.com/godaddy/terminus/raw/master/LICENSE
│  └─ parents: fake
└─ lodash@4.17.10
   ├─ licenses: MIT
   ├─ repository: https://github.com/lodash/lodash
   ├─ licenseUrl: https://github.com/lodash/lodash/raw/master/LICENSE
   └─ parents: fake

Number of entries found: 2

for package.json:

{
  "name": "demo",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@godaddy/terminus": "^2.2.0",
    "lodash": "^4.17.10"
  }
}
jamiemjennings commented 6 years ago

@mwittig could you PTAL ?

mwittig commented 6 years ago

Thanks for your contribution and sorry for the delay. I'll review asap