Last week a module called left-pad broke the internet. This got us thinking about what this incident means for NPM, and dependencies in general.
Last week a module called left-pad, just 11 lines of JavaScript long, broke the internet. The module — relied on by the likes of Babel, React and other popular libraries — was removed from npm (the package manager for NodeJS) and suddenly everything stopped working as it should.
Unsurprisingly developers around the world began to panic. In fact the problem became so widespread npm were forced to republish the module, getting it back online and fixing web development as we know it. The npm team wrote an in depth explanation of the whole left-pad fiasco on their blog if you’re interested in reading more.
Over at Pusher this got us thinking about what this incident means for npm, and dependencies in general. So Ben Foxall and I grabbed a coffee by the Pusher offices to chat things through.
To summarise our ramblings above there’s a few things we can learn from the debacle.
This video is the first in what we hope will be a series of useful chats on everything web development related. Subscribe to the Pusher YouTube channel to keep up to date on the latest.
Did you find it useful? Are we just really annoying? What do you think about the entire npm debate? We’d love to get your thoughts. Leave a comment below or find us over on Twitter at @Jack_Franklin and @Benjaminbenben.