license-checker icon indicating copy to clipboard operation
license-checker copied to clipboard

List only top level dependancies

Open grahammills opened this issue 6 years ago • 8 comments

Is there an option to only output dependencies up to X levels deep. e.g. --production --depth 0 Would only list the dependencies under production but not any of their dependencies. This is handy for generating a top level list dependencies and their licenses for a project.

grahammills avatar Oct 02 '18 14:10 grahammills

Just spotted an exiting pull request #136

grahammills avatar Oct 02 '18 14:10 grahammills

That PR has been merged now. (So I guess this issue could be closed as well? @davglass )

erikrenberg avatar Jan 10 '19 19:01 erikrenberg

The options --depth 0 and --direct do not work. I'm still presented with ALL dependencies and dependencies of my dependencies using either option.

A search of the codebase shows that there is no actual code handling the --direct flag, only README changes. Additionally, the README is improperly formatted. I think #136 was not merged correctly.

mririgoyen avatar Apr 28 '19 01:04 mririgoyen

+1

vogloblinsky avatar May 27 '19 10:05 vogloblinsky

Same problem as #191

sebastianhaas avatar Sep 30 '19 12:09 sebastianhaas

Any solution for that issue?

mflash1 avatar Jun 07 '20 14:06 mflash1

Any updates on this?

tmtakashi avatar Jun 25 '20 04:06 tmtakashi

npm-license-crawler with the --onlyDirectDependencies flag seems to work

daniel-shuy avatar Mar 02 '21 09:03 daniel-shuy