As a developer, i would like to know what packages are linked with confidence and ease.
Use a bash command
Currently, through bash i could do this through cli:
find node_modules -type d -name ".bin" -prune -o -type l -print. This will reliably list the packages. However, it is coupled to the implmentation of listing the .node folder.
Pros: It’s a package and installable
Cons: Must globally install another package to get this to work
Accept an argument to list linked packages:
What are your thoughts about the following (Please vote):
- npm ls --linked
- npm ls --type=linked
- npm link --list
There currently is an implementation out there that list packages: