4 ms·
is-odd gets between 400k and 500k downloads every week[1]. Maybe you don't need it, but lots of JS developers have decided that they do. is-odd also depends on
by dahfizz 5y ago
is-odd gets between 400k and 500k downloads every week[1]. Maybe you don't need it, but lots of JS developers have decided that they do. is-odd also depends on is-number, and is-even depends on is-odd.
I agree that these packages are trivially implemented by a first party instead of imported, but ~half a million JS developers every week choose to import it instead. _That is the problem_.
[1] https://www.npmjs.com/package/is-odd https://www.npmjs.com/package/is-odd
- dvlsg 5y agoI'm fairly certain those download numbers include CI runs redownloading the not-cached package over and over, likely via a transitive dependency. I don't think it's fair to say approximately half a million unique JS developers are choosing to import it every week.
- imtringued 5y agoThat's the damn problem with npm. This library is responsible for 50% of all downloads to is-even which calls is-odd. https://www.npmjs.com/package/handlebars-helpers https://www.npmjs.com/package/handlebars-helpers Who cares? https://github.com/helpers/handlebars-helpers/issues/315 https://github.com/helpers/handlebars-helpers/issues/315
- lucideer 5y agoThese numbers aren't too hard to rack up for well-known packages (even the meme ones like this). e.g. is-odd is a transitive dependency of stuff like handlebars-helpers which gets a lot of downloads and will pull in is-odd automatically.