2 ms·
This specific case is just a grift. The usage of is-odd isn't as legitimate as people think. If you look through the dependents, there are other packages by th
by whstl 3y ago
This specific case is just a grift. The usage of is-odd isn't as legitimate as people think.
If you look through the dependents, there are other packages by the same author that are "semi-useful" and depend on it. The author got some important packages to use those.
The author could just inline is-odd, it's a single line after all, but then he would lose the bragging rights of having a package with 500k weekly downloads.
This is how left-pad got included into create-react-app (or something like that) in the past. It was a 3rd or 4th level dependency of something that was actually useful.
The problem here is people and packages not really vetting their 3rd-4th level dependencies. And you'll see a lot of people here in HN defending the practice of not caring.