# is-odd-num

> a simple package to find a given number is odd or not

Latest version **1.1.1** (published 2021-10-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-odd-num
pnpm add is-odd-num
yarn add is-odd-num
bun add is-odd-num
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2021-10-29 |
| First published | 2021-08-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Prasun Das |
| Maintainers | prasundas |
| Keywords | npm, isodd, array, count, is, math, string |

## Links

- npm: https://www.npmjs.com/package/is-odd-num
- Repository: https://github.com/absurd-npm/isodd
- Homepage: https://github.com/absurd-npm/isodd#readme
- Issues: https://github.com/absurd-npm/isodd/issues
- npm.io page: https://npm.io/package/is-odd-num

## Dependencies (2)

- [mocha](https://npm.io/package/mocha.md) ^9.1.0
- [is-number](https://npm.io/package/is-number.md) ^7.0.0

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2021-10-29
- 1.0.1 — 2021-08-21
- 1.0.0 — 2021-08-21

## README

# is-odd-num [![NPM version](https://img.shields.io/npm/v/is-odd-num.svg?style=flat)](https://www.npmjs.com/package/isodd) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-odd.svg-num?style=flat)](https://www.npmjs.com/package/is-odd-num) [![NPM total downloads](https://img.shields.io/npm/dt/is-odd-num.svg?style=flat)](https://www.npmjs.com/package/is-odd-num) 

> Returns true if the given number is odd, and is an integer that does not exceed the JavaScript MAXIMUM_SAFE_INTEGER.

## Install

Install with [npm](https://www.npmjs.com/):

```sh
$ npm install --save is-odd-num
```

## Usage

Works with strings or numbers.

```js
const isOdd = require('is-odd-num');

console.log(isOdd('1')); //=> true
console.log(isOdd('3')); //=> true

console.log(isOdd(0)); //=> false
console.log(isOdd(2)); //=> false
```

## About

<details>
<summary><strong>Contributing</strong></summary>

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).

</details>

<details>
<summary><strong>Running Tests</strong></summary>

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:

```sh
$ npm install && npm test
```

</details>


### License
Released under the [MIT License](LICENSE).

***

---
_Source: https://npm.io/package/is-odd-num · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
