scalemap

1.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i scalemap

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • rooch84