open-index/open-npm huggingface dataset:
npm package: @saishravan/is-even
Description: A tiny utility module that checks if a number is even.
Author: Sai Shravan
Latest version: 1.0.0

# is-even

> A tiny utility module that checks if a number is even. Useful for validation, filters, or mathematical utilities.

[![npm version](https://badge.fury.io/js/is-even.svg)](https://www.npmjs.com/package/is-even)
[![Coverage Status](https://coveralls.io/repos/github/yourusername/is-even/badge.svg?branch=main)](https://coveralls.io/github/yourusername/is-even?branch=main)

---

## ✨ Features

- ✅ Lightweight & fast
- ✅ 100% test coverage
- ✅ Zero dependencies

---

## 📦 Installation

```bash
npm install is-even
# or
yarn add is-even
```

---

## 🧠 Usage

```js
const isEven = require('is-even')

console.log(isEven(2)) // true
console.log(isEven(3)) // false
```

---

## ⚠️ Input Validation

- Accepts only numbers
- Throws an error on invalid input

```js
isEven('4') // ❌ Throws: Input must be a number!
```

---

## 📂 Project Structure

```txt
is-even/
├── index.js          # Main module
├── __tests__/        # Unit tests
├── package.json
└── README.md
```

---

## 🧪 Running Tests

```bash
npm test             # Basic test run
npm run test:watch   # Watch mode
npm run test:coverage # Generate coverage report
```

---

## 📄 License

MIT © [Sai Shravan](mailto:shravzzv@outlook.com)

---

## 🙌 Contributing

Feel free to open issues, suggest features, or contribute code!

```bash
git clone https://github.com/yourusername/is-even.git
cd is-even
npm install
```

---

## ⭐️ Show Your Support

If you find this module useful, consider starring the repo on GitHub or sharing it with a fellow dev.

---