5 ms·
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 o
by takeda 7y 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/ https://www.theregister.co.uk/2016/03/23/npm_left_pad_chaos/
- deergomoo 7y agoIt wouldn’t surprise me to learn that this is ultimately due to how little the JS standard library actually does.
- paulddraper 7y agoIt is. Though ES2017 added a number of string operations, including String.prototype.padStart.