In tech/development culture, working smarter equates to something like "I did this in 3 lines of Node". God help the maintainer or ops person when left pad is pulled or the performance suffers.
The fact is whether to use some random NPM library is a strawman, in the case of left-pad it's trivial either way. The more interesting question is how you assess the stability risk of NPM.