Re:One liner NPM package “is-windows” has 2.5M dependants, w...
by tlrobinson on Wednesday June 19, 2019 @10:42AM
(#20223799)
My problem with these kinds of libraries is it’s not at all obvious how it behaves in edge cases, and they’re so simple I’d rather just implement it myself. Maybe I want it to throw an error, maybe I just want it to return false. Even the documentation doesn’t tell you what happens for non-integer values, you have to look at the source, at which point you may as well copy it into your own source tree.
[ Parent
| on HN ]
There are no comments on this comment yet.