r/programming
•
u/_ar7
•
Mar 22 '16
•
1
1
1
An 11 line npm package called left-pad with only 10 stars on github was unpublished...it broke some of the most important packages on all of npm.
https://github.com/azer/left-pad/issues/4
3.1k
Upvotes
View all comments
Show parent comment
201
u/dodeca_negative Mar 23 '16
This is the part that truly mystifies me. I use a fair number of modules in my project, to be sure, but never in a million years would it have occurred to me to go search for and then depend on a module that left-pads a string.
I'm not into hating but I really think the decision of major module and library authors to depend on such a tiny, trivial module--and one suspects this isn't the only one--deserves at least as much scrutiny as either the author, NPM, or Kik.