Hacker News new | ask | show | jobs
by nailer 3871 days ago
npm v3 already uses the 'flat by default' design, so the node_modules folders aren't that different.
1 comments

They are extremely different.

I made a quick comparison here: https://gist.github.com/alexanderGugel/a10ed5655d366875a280

Basically ied uses symlinks in order to resolve circular dependencies, while ied exploits the fact that require "falls back" in the directory structure.

Understood. Though I believe your comment (which compared ied with itself) should actually read:

> Basically ied uses symlinks in order to resolve circular dependencies, while npm exploits the fact that require "falls back" in the directory structure.

Yup. Thanks.