# 🌀 Oddyssey - it's odd

[![npm version](https://img.shields.io/npm/v/%40ealch%2Foddyssey?color=blue&t=1)](https://www.npmjs.com/package/@ealch/oddyssey)
[![license](https://img.shields.io/npm/l/%40ealch%2Foddyssey)](./LICENSE.md)
[![minzipped size](https://img.shields.io/bundlephobia/minzip/%40ealch%2Foddyssey)](https://bundlephobia.com/package/@ealch/oddyssey)


A tiny utility to check if a number is **odd** or **even**.

Published as: [`@ealch/oddyssey`](https://www.npmjs.com/package/@ealch/oddyssey)

---

## 📦 Installation

```bash
npm install @ealch/oddyssey
# or
pnpm add @ealch/oddyssey
# or
yarn add @ealch/oddyssey
```

## 📦 Usage
```js
import { isOdd, isEven } from '@ealch/oddyssey';

console.log(isOdd(3));   // true
console.log(isEven(4));  // true

console.log(isOdd(0));   // false
console.log(isEven(1));   // false
```

## 🧠 API
**isOdd(value: number): boolean**

Returns true if the given number is odd.


**isEven(value: number): boolean**

Returns true if the given number is even.

## 🧪 Example
```js
import { isEven } from '@ealch/oddyssey';

[1, 2, 3, 4, 5, 6].forEach(n => {
  console.log(`${n} is even: ${isEven(n) ? 'yes' : 'no'}`);
});
```

**Output:**
```bash
1 is even: no
2 is even: yes
3 is even: no
4 is even: yes
5 is even: no
6 is even: yes
```

## 🧾 Scripts
- **`dev`**: Run Vite in dev mode  
- **`build`**: Build the library (JS bundles + TypeScript types)  
- **`preview`**: Preview the library build locally  
- **`prepublishOnly`**: Hook to build before publishing to npm  

## 📄 License

MIT © @ealch
