# @almcd/mapnumericalrange

> Re-maps a number from one range to another

Latest version **1.0.5** (published 2019-05-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @almcd/mapnumericalrange
pnpm add @almcd/mapnumericalrange
yarn add @almcd/mapnumericalrange
bun add @almcd/mapnumericalrange
```

## 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.5 |
| Published | 2019-05-28 |
| First published | 2019-05-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | almcd |
| Keywords | map, math, npm, package, almcd |

## Links

- npm: https://www.npmjs.com/package/@almcd/mapnumericalrange
- Repository: https://github.com/almcd/mapNumericalRange
- Homepage: https://github.com/almcd/mapNumericalRange#readme
- Issues: https://github.com/almcd/mapNumericalRange/issues
- npm.io page: https://npm.io/package/@almcd/mapnumericalrange

## 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.0.5 (latest) — 2019-05-28
- 1.0.4 — 2019-05-28
- 1.0.3 — 2019-05-28
- 1.0.2 — 2019-05-28
- 1.0.1 — 2019-05-28
- 1.0.0 — 2019-05-28

## README

# mapnumericalrange

![npm (scoped)](https://img.shields.io/npm/v/@almcd/mapnumericalrange.svg)
![npm bundle size (scoped)](https://img.shields.io/bundlephobia/min/@almcd/mapnumericalrange.svg)

Re-maps a number from one range to another.

## Install
```
$ npm install @almcd/mapnumericalrange
```

## Syntax
```js
mapNumericalRange(value, start1, stop1, start2, stop2);
```

## Parameters

`value`	Number: the value to be converted

`start1` Number: the lower bound of the value's current range

`stop1`	Number: the upper bound of the value's current range

`start2` Number: the lower bound of the value's target range

`stop2` Number: the upper bound of the value's target range

## Usage
```js
const mapNumericalRange = require("@almcd/mapnumericalrange");

mapNumericalRange(25, 0, 100, 500, 1000);
//=> 625
```

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