I wrote a tool that given a NodeJS project calculate its dependency tree in a format I need. It is based on npm ls command:
npm ls --parseable=true --long=true --production
I noticed that sometime this command reaches a maxdepth and a line like this is printed:
.../bn.js:bn.js@"^0.15.0"::MAXDEPTH
When MAXDEPTH appear the dependency tree reached its max. I have now few questions:
- What is the default max depth for npm ls (I didn't find this info in the doc)?
- With a limited MAXDEPTH, do I omit some dependencies?
- How can I have an infinite MAXDEPTH?
- Is it convenient have an infinite MAXDEPTH?
Thx
via Salvatore D'angelo
No comments:
Post a Comment