npm.io
1.0.1 • Published 8 years ago

scalemap

Licence
MIT
Version
1.0.1
Deps
0
Vulns
0
Weekly
0

scalemap

An npm package for converting a value from one scale to another.

Installation

npm install scalemap

Usage

var map = require('scalemap');

var val = map(0.5, 0, 1, 0, 2);

Output should be 1.

Tests

npm test

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Keywords