@hellomonday/map
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@hellomonday/map

Map one number range to another. This is also known as learp.

Install

$ npm install --save @hellomonday/map

Usage

import map from '@hellomonday/map';

// map input from range 10-500 to 0-1
const input = 70;
const value = map(input, 10, 500, 0, 1);

License

MIT © Hello Monday

Readme

Keywords

none

Package Sidebar

Install

npm i @hellomonday/map

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.6 kB

Total Files

5

Last publish

Collaborators

  • supermoos
  • zerguei
  • johnnyslack
  • virgilspruit
  • anderssjessen
  • terkelg