remap-number
v1.0.0
Published
remap a number from one range to another
Downloads
4
Readme
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