# just-in-range

> Checks if number is within a given range

Latest version **1.2.0** (published 2022-12-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install just-in-range
pnpm add just-in-range
yarn add just-in-range
bun add just-in-range
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2022-12-17 |
| First published | 2022-03-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6199 |
| Author | evandrolg |
| Maintainers | angus-c |
| Keywords | number, range, just |

## Links

- npm: https://www.npmjs.com/package/just-in-range
- Repository: https://github.com/angus-c/just
- Homepage: https://github.com/angus-c/just#readme
- Issues: https://github.com/angus-c/just/issues
- npm.io page: https://npm.io/package/just-in-range

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2022-12-17
- 1.1.1 — 2022-08-08
- 1.1.0 — 2022-08-07
- 1.0.1 — 2022-06-05
- 1.0.0 — 2022-03-27

## README

<!-- DO NOT EDIT THIS FILE! THIS FILE WAS AUTOGENERATED BY TEMPLATE-MATE -->
<!-- SEE https://github.com/angus-c/just/blob/master/CONTRIBUTING.md#readme-template -->

## just-in-range

Part of a [library](https://anguscroll.com/just) of zero-dependency npm modules that do just do one thing.
Guilt-free utilities for every occasion.

[`🍦 Try it`](https://anguscroll.com/just/just-in-range)

```shell
npm install just-in-range
```
```shell
yarn add just-in-range
```

Check if number is within a given range

```js
  import inRange from 'just-number-in-range'

/*
  inRange(2, 1, 10); // true
  inRange(15, 20); // true
  inRange(20, 21, 30); // false
  inRange(30, 21, 30); // false
  inRange(); // throws
  inRange(100); // throws
  inRange("js"); // throws
*/
```

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