mapvaluejs
v1.0.7
Published
A simple module to map a number value in one range to another
Downloads
1
Readme
MapValueJs
Introduction
A simple module to map a number value in one range to another
Installing
Using npm :
npm install mapvaluejs
When the package is installed, you can use the import or require approach Using Import
import {map} from 'mapvaluejs/src';
console.log("Mapped value : ",map(350,0,1023,0,253));
Using require
const mapvaluejs = require('mapvaluejs/src');
console.log("Mapped value : ",mapvaluejs.map(350,0,1023,0,253));
GitHub
You can access the source code of this module from here