Re:Show HN: Remove-bg – open-source remove background using ...
by simjnd on Monday August 26, 2024 @01:33PM
(#41359562)
Very cool, but man pulling 900+ dependencies to build and run this thing feels awful. The NPM culture is out of control.
[ Parent
| on HN ]
Re:Show HN: Remove-bg – open-source remove background using ...
by anduc on Monday August 26, 2024 @02:16PM
(#41360034)
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
Re:Show HN: Remove-bg – open-source remove background using ...
by thelastparadise on Monday August 26, 2024 @03:31PM
(#41360886)
> 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
Re:Show HN: Remove-bg – open-source remove background using ...
by ashishb on Monday August 26, 2024 @03:54PM
(#41361154)
JS standard library is very limited.
So, pulling in third party dependencies to even left pad a string is normal.
Re:Show HN: Remove-bg – open-source remove background using ...
by throwaway63820 on Monday August 26, 2024 @04:01PM
(#41361236)
you mean the native `str.padStart(targetLength, padString)`
Re:Show HN: Remove-bg – open-source remove background using ...
by zamadatix on Monday August 26, 2024 @05:43PM
(#41362533)
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.