Post# 1458796975

24-Mar-2016 11:22 am


Talk of the town in programmer's community today is about node npm pakages and dependencies.

Facts:

- There’s a package called isArray that has 880,000 downloads a day, and 18 million downloads in February of 2016. It has 72 dependent NPM packages. Here’s it’s entire 1 line of code:

return toString.call(arr) == '[object Array]';

- There’s a package called is-positive-integer (GitHub) that is 4 lines long and as of yesterday required 3 dependencies to use. The author has since refactored it to require 0 dependencies, but I have to wonder why it wasn’t that way in the first place.

- A fresh install of the Babel package includes 41,000 files

- A blank jspm/npm-based app template now starts with 28,000+ files

http://www.haneycodes.net/npm-left-pad-have-we-forgotten-how-to-program/

24-Mar-2016 11:22 am

Published
24-Mar-2016