Hacker News new | ask | show | jobs
by simjnd 655 days ago
Very cool, but man pulling 900+ dependencies to build and run this thing feels awful. The NPM culture is out of control.
2 comments

Haha, I didn't notice this! Yeah, only Vite will reduce the dependencies a lot, but I'm not sure which one is the biggest here to talk about

Will try to the deps simpler later, after all this is about a little time of work

> Will try to the deps simpler later, after all this is about a little time of work

Word of tip, you may not want to jump on every last suggestion from the peanut gallery instantly

JS standard library is very limited. So, pulling in third party dependencies to even left pad a string is normal.
you mean the native `str.padStart(targetLength, padString)`
To be fair (as one who leans pretty heavy in favor of the JS world) .padStart() was only added in response to the aforementioned left-pad fiasco. The language adding that was more a face saving measure from the blowback than an attempt to fix the actual problems.

Despite all that, left-pad still gets > 1 million weekly downloads on npm.