bengreenier

bengreenier/range-fit

given a number and two ranges, fit from one range to another

JavaScript
0
0
MIT License

Range‑Fit is a tiny Node.js library that maps a numeric value from one interval onto another while preserving the original ratio—e.g., converting a score from 0‑100 to a health bar of 0‑200 or normalizing sensor readings. It’s aimed at developers who need simple, reliable range‑conversion utilities for data visualization, games, analytics, or any situation where values must be translated between different scale ranges.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of bengreenier/range-fit

Account's avatar
simple, flexible, fun test framework

Support the repos that depend on this repository

Top contributors

bengreenier's profile
bengreenier
3 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet