1.0.0 • Published 5 years ago

mapalizer v1.0.0

Weekly downloads
6
License
MIT
Repository
-
Last release
5 years ago

Mapalizer

An npm module to map and normalize a value in a given range

NPM JavaScript Style Guide

Installation

npm install mapalizer

Usage

Provide the 5 required arguments in the function call and the normalized value will be returned

import useMapalizer from "mapalizer";

const result = useMapalizer(value: number,initalBaseVal: number,finalBaseVal: number,initalTargetVal: number, finalTargetVal: number);

Example

import useMapalizer from "mapalizer";

const result = useMapalizer(10, 1, 100, 20, 30);
1.0.0

5 years ago

0.1.0

5 years ago