The Hidden Cost of Tiny Dependencies

I have been thinking a lot about npm dependencies lately, especially the small ones. Not the big libraries that solve hard problems, but the tiny packages that do one small thing: strip whitespace, pad a string, check a type, or format something simple. A good example is strip-indent , a small package that removes leading whitespace from each line of a string. If you open the source, it is not…