# between-range

> check if a given number is between two numbers

Latest version **1.0.0** (published 2015-11-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install between-range
pnpm add between-range
yarn add between-range
bun add between-range
```

## 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.0.0 |
| Published | 2015-11-19 |
| First published | 2015-11-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | @joaquimserafim |
| Maintainers | quim |
| Keywords | between, numbers, values, range, int, integers, util |

## Links

- npm: https://www.npmjs.com/package/between-range
- Repository: https://github.com/joaquimserafim/between-range
- Issues: https://github.com/joaquimserafim/between-range/issues
- npm.io page: https://npm.io/package/between-range

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-11-19

## README

# between-range

check if a given number is between two values

<a href="https://nodei.co/npm/between-range/"><img src="https://nodei.co/npm/between-range.png?downloads=true"></a>

[![Build Status](https://img.shields.io/badge/build-passing-brightgreen.svg?style=flat-square)](https://travis-ci.org/joaquimserafim/between-range)![Code Coverage 100%](https://img.shields.io/badge/code%20coverage-100%25-green.svg?style=flat-square)[![ISC License](https://img.shields.io/badge/license-ISC-blue.svg?style=flat-square)](https://github.com/joaquimserafim/between-range/blob/master/LICENSE)


## API
```js
var between = require('between-range')
```

*   **between(*value*, *number1*, *number2*)**


## Usage

##### check if a number is inside of the passed range
```js
var inside = between(200, 200, 299) // should return true
var notInside = between(101, 200, 299) // should return false
```


### Development

##### this projet has been set up with a precommit that forces you to follow a code style, no jshint issues and 100% of code coverage before commit


to run test
```js
npm test
```

to run jshint
```js
npm run jshint
```

to run code style
```js
npm run code-style
```

to run check code coverage
```js
npm run check-coverage
```

to open the code coverage report
```js
npm run open-coverage
```

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