Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
inaba44856yAnd the worst part is how everyone just took it at face value without asking weather or not it happened.
So here's the github issue https://github.com/Unitech/pm2/...
And here's the company behind PM2's reason for that "optional dependency" https://twitter.com/keymetrics_io/...
(And i have no idea about the supposed thousands of CI builds) -
inaba44856y@nitwhiz Actually this is more of a lesson in why reinventing the wheel is a bad idea, something I've heard happens a lot in closed source environments -
noder11836y@irene - lpad has 11 lines, but check this one 'isarray' - https://npmjs.com/package/isarray/
It has 21M weekly downloads, but the actual code is just 4 lines - https://github.com/juliangruber/...
Fun part is, there is another NPM package that does the same as 'isarray' - 'is-array' (with a hyphen). -
noder11836y@Froot - Even more funnier is that the isarray npm package internally uses Array.isArray -
Froot74576y@noder that's.... That's genius actually.
And here I am writing libraries that actually do shit that isnt covered by other libraries out there. Fuck me
Related Rants

Found something true as 1 == 1
Code I wrote: 15kb
NPM Modules: 198Mb
This is where US's bandwith is going
So pm2 (a node process manager package on npm) just caused thousands of CI builds to fail because of an "optionalDependency" on a package called gkt which is requested as a tarball from a server that was returning 503. That package consists of one file which contains this
rant
pm2
the crazy js ecosystem
npm