mapalizer
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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);

Package Sidebar

Install

npm i mapalizer

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.14 kB

Total Files

9

Last publish

Collaborators

  • lnardon