remap-number

1.0.0 • Public • Published

remap-number

Port of the Arduino map function.

usage

import remap from "remap-number"

const remapper = remap({
  from: {
    low: 1,
    high: 10
  },
  to: {
    low: 100,
    high: 1000
  }
})

remapper(5) // 500

Readme

Keywords

Package Sidebar

Install

npm i remap-number

Weekly Downloads

5

Version

1.0.0

License

MIT

Last publish

Collaborators

  • rogerbf