4 ms·
Very cool, but man pulling 900+ dependencies to build and run this thing feels awful. The NPM culture is out of control.
by simjnd 2y ago
Very cool, but man pulling 900+ dependencies to build and run this thing feels awful. The NPM culture is out of control.
- anduc 2y agoHaha, 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
- thelastparadise 2y ago> 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
- ashishb 2y agoJS standard library is very limited. So, pulling in third party dependencies to even left pad a string is normal.
- throwaway63820 2y agoyou mean the native `str.padStart(targetLength, padString)`
- zamadatix 2y agoTo 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.
- deleted 2y ago[deleted]