A simple TypeScript package to check if a number is even.
To install the package, run:
npm install @georgenikhil/is-even
To use the package, import the isEven
function and call it with a number:
import { isEven } from '@georgenikhil/is-even';
console.log(isEven(2)); // true
To build the package, run:
npm run build
To run the tests, execute:
npm run test
Copyright © 2024, Nikhil George. Released under the ISC License.