2 ms·
Plot twist: This was the endgame of all those 1000s of trivial npm packages.
by paulddraper 4y ago
Plot twist: This was the endgame of all those 1000s of trivial npm packages.
- toastal 4y agoWhy Array.isArray() when you can require("isarray").isArray()? (Node.js 0.10.0, Fx 4.0) deep-equal has 43 packages (& 17m weekly downloads) that are mostly (is|has)-* packages or redundant wrappers like for-each and object-keys (https://npmgraph.js.org/?q=deep-equal https://npmgraph.js.org/?q=deep-equal) and you’ll find this package included in a lot of upstream libraries. Ask for a banana and get a gorilla and forest... Luckily many have moved to fast-deep-equal (0 dependencies), but there are a lot of other examples of this sort of thing.