1.0.1 • Published 6 months ago
is-it-even-odd v1.0.1
is-it-even-odd

Makes two functions avaiable to check if a number is even or odd. Support numbers up to 2770947.
Please consider following this project's author, 3n3a, and consider starring the project to show your :heart: and support.
Install
Install with npm npm:
$ npm install --save is-it-even-odd
Usage
Works with numbers or integers.
isEven
const { isEven } = require('is-it-even-odd');
console.log(isEven(0)); //=> true
console.log(isEven(2)); //=> true
isOdd
const { isOdd } = require('is-it-even-odd');
console.log(isOdd(0)); //=> false
console.log(isOdd(2)); //=> false
About
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
$ npm install && npm test
Author
3n3a
License
Copyright © 2025, 3n3a. Released under the MIT License.