1.0.1 • Published 7 months ago

@oriano-dev/is-even v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

isEven v1.0.1 : Check if a number is odd/even.

A lightweight library to test whether a number is odd or even.

Supports various data types such as number, string as well as bigint. All the methods have the proper typing and documentation.

How to use this library ?

  1. Install the library via npm
npm install @oriano-dev/is-even
  1. Import the library in your project
import { isEven } from "@oriano-dev/is-even";
  1. Use the methods anytime in your project
isEven.number(24, "even"); // true
isEven.number(-5, "even"); // false
isEven.string("231", "odd"); // true
isEven.bigint(456257262842n, "even"); // true

Tech behind the library

  • Language used : TypeScript and JavaScript
  • Testing library : Jest
  • Programming paradigm : Object Oriented Programming (OOP)

This library has been released in about 5 hours over 1 morning.

1.0.1

7 months ago

1.0.0

7 months ago