5 Questionable NPM Packages

There are quite a number of questionable NPM packages on the NPM registry, but here are a few:

1: is-ten-thousand

This has got to be the more ridiculous node module ever. It’s 249 lines long and imports 29 other node modules (Including jQuery).

The whole point in the library is to return true if the inputted number is ten thousand, and false if it’s not.

View it here: https://www.npmjs.com/package/is-ten-thousand

2: is-even

This even has types for TypeScript (@types/is-even), though I think it’s probably one of those automated ones. It was used by React at one point, but has been removed as a dependency since.

The whole point in the library is to return true if the inputted number is even, and false if it’s not.

What’s even more funny about it is that it imports is-odd and just makes it opposite.

View it here: https://www.npmjs.com/package/is-even

3: true

Literally just returns true.

For some reason there is a test to see if it returns true.

View it here: https://www.npmjs.com/package/true

4: meaning-of-life

This just returns 42.

View it here: https://www.npmjs.com/package/meaning-of-life

5: none

Fastest NPM package ever to exist on the NPM registry, takes 0 ms for it to run!

View it here: https://www.npmjs.com/package/none

Loading


Discover more from WTDawson

Subscribe to get the latest posts sent to your email.

Leave a Reply