Poll: I use npm, and the JavaScript I write runs...
For example, require.resolve gives you the main file, but it's not always in the root. These issues are ancient and wontfixed.
-
-
Maybe there's already a nice npm-maintained package floating around that gives you a graph of node_modules in consumable form?
-
Different in what way from the output of `npm ls --json`? File-level granularity instead of module-level?
-
Gotta break out my laptop and check :)
-
This might be a good enough primitive but I'd have to walk the FS again to find the entry points (this is focused on deps)
-
The peerMissing stuff in here is great! Hadn't noticed it.
-
Glad I could (partially) help! Your point on browser entry points is a good one. As you've seen,
@izs is already paying attention.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.