Hacker News new | ask | show | jobs
by desmond1303 760 days ago
I honestly don't know what's worse; That this package exists, or that the implementation requires a dependency to `is-odd` and just does `return !isOdd(number)`
4 comments

IIRC it’s the same author, and designed this way to farm downloads.
From GitHub:

"Several years ago, just before my 40th birthday, I switched careers from sales, marketing and consulting to learn how to program, with the goal of making the world a better place through code. Whether that means giving people access to information, the tools and technology to level the playing field with big corporations, or empowering people in impoverished regions to participate in the world economy.

To date, I've created more than 1,000 open source projects in an effort to reach my goal. Open source software takes a lot of time to create and maintain, and millions of projects now depend on my code. You can help me to achieve my goals of improving the world through code, help me create better developer experiences, or just say "thank you" by sponsoring me on GitHub. Any and all contributions are greatly appreciated."

The author is notorious for flooding npm with small packages like this.
Don't forget is-odd-and-even[1], which depends on both and checks if they both return true (they obviously never do)

[1] https://www.npmjs.com/package/is-odd-and-even

> (This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)

What's worse is that it comes with a special generated readme page.

This is wonderful