Hacker News new | ask | show | jobs
by takeda 2468 days ago
I think the problem is that NodeJS has a weird culture where a separate package is created for every little thing, then tons of other packages start depending on it.

I don't live in NodeJS world but even I heard about package Left-Pad, that all it does is padding string from the left side. The author decided to pull it out from the repo rendering tons of other packages nonoperational[1].

[1] https://www.theregister.co.uk/2016/03/23/npm_left_pad_chaos/

1 comments

It wouldn’t surprise me to learn that this is ultimately due to how little the JS standard library actually does.
It is.

Though ES2017 added a number of string operations, including String.prototype.padStart.