Skip to content

rogerbf/remap-number

Repository files navigation

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

About

remap a number from one range to another

Resources

License

Stars

Watchers

Forks

Packages

No packages published