Especially when deploying a node app with node modules to a embedded system, I am struggling with a size of node modules.
When I do npm install, it downloads not only the required sources but also other files, for instance Socket.io (0.9.16) contains 12 MB dependencies -- after a short investigation, I've realized that it depends on zeparser, which just contains 8 MB file (benchmark.html) that does not seem to be needed for production.
Is there already a way how to depend on modules and tell npm (or other package manager) to install just the source files (not documentation, benchmarks, etc.)? Or do I have to still manually maintain the list of not needed files for each module?
(Only what I have found is dedupe module, which remove nested duplicated dependencies.)