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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i mapalizer

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

3.14 kB

Total Files

9

Last publish

Collaborators

  • lnardon