4 ms·
The worst offender, IMO, is request. I've seen more than a few projects pull it in just to make a single HTTP call. Just look at its package.json: https://gi
by alexose 11y ago
The worst offender, IMO, is request. I've seen more than a few projects pull it in just to make a single HTTP call. Just look at its package.json:
https://github.com/request/request/blob/master/package.json https://github.com/request/request/blob/master/package.json
- jbergknoff 11y agoYes, the npm "request" module is extremely bloated and badly written, to boot. https://www.npmjs.com/package/needle https://www.npmjs.com/package/needle is a good alternative.
- hassy 11y agoI'd argue the offending party is the library pulling in Request for making a few simple HTTP calls. Request itself in my opinion is a great piece of work, it does pretty much anything one would want to do with an HTTP client.
- glenjamin 11y agoCould you elaborate on why you view this list of dependencies as a problem? I've been using request and its many transitive dependencies for years without hitting any real problems due to this.