DEV Community

Discussion on: 10 useless NPM Package with millions of downloads

Collapse
 
nombrekeff profile image
Keff

funny, know what's even funnier? check out the code for is-even:

'use strict';

var isOdd = require('is-odd');

module.exports = function isEven(i) {
  return !isOdd(i);
};
Enter fullscreen mode Exit fullscreen mode

It's fricking is-odd, negated... And then is-odd depends on is-number, crazy stuff

Collapse
 
jyotishman profile image
Jyotishman Saikia

haha Keff ! funniest part is that is has millions of downloads

Collapse
 
jeck5895 profile image
jeck labasan

lol hahahaha

Collapse
 
raibtoffoletto profile image
Raí B. Toffoletto

WTF......

Collapse
 
ishanpro profile image
Ishan Tiwari

Who on earth has downloaded it?

Collapse
 
jyotishman profile image
Jyotishman Saikia

haha! Even i am finding those folks

Collapse
 
jzombie profile image
jzombie

The people who use these packages: npmjs.com/browse/depended/is-even

Collapse
 
weirdguppy1 profile image
weirdguppy1

Lmao 😂

Collapse
 
jyotishman profile image
Jyotishman Saikia

haha! 🤣 . my reaction was same when i discovered it.

Collapse
 
luispa profile image
LuisPa

And if you think about this for a second, it looks like is using another package to inflate the numbers of the downloads for both packages.

I've seen this in a lot of packages, all the time comes from the same publisher.

Collapse
 
ashkanmohammadi profile image
Amohammadi2

🤣🤣🤣🤣

Collapse
 
gsuess profile image
Garik Suess • Edited

It gets even better: there is a package named "is-uneven", which, you guessed it, depends on is-even and negates. You couldn't make this stuff up.

npmjs.com/package/is-uneven

Collapse
 
leob profile image
leob

I like it that the author says "Help with this big and important project is very appreciated", at least he's got humor and he's probably also aware that the whole thing is just a joke!

Collapse
 
siddharthshyniben profile image
Siddharth

I guess you still can make is-unodd, which doesn't exist

Thread Thread
 
vukky profile image
Vukky

Are you sure?

Thread Thread
 
siddharthshyniben profile image
Siddharth

:D

Thread Thread
 
siddharthshyniben profile image
Siddharth

is-unodd negates is-uneven negates is-even negates is-odd which returns !!(~~i & 1)

Collapse
 
nombrekeff profile image
Keff

Incredible, imagine what would happen if suddenly they remove is-even package... like what happened with this other package of which I don't remember the name of... which broke quite a lot of stuff...

Thread Thread
 
jezmck profile image
Jez McKean

leftpad iirc

Thread Thread
 
nombrekeff profile image
Keff

Yes, that's the one, thanks!

Collapse
 
jazzbrown1 profile image
Jazz Brown

Hmmmm very dubious that it was created and commited all in the last two days.

Collapse
 
justaguyfrombr profile image
Misael Braga de Bitencourt

🤣🤣🤣🤣🤣🤣🤣🤣🤣