remap-value

1.0.0 • Public • Published

remap-value

Build Status

Installation

npm install remap-value --save

Syntax

remapValue(value, currentRangeStart, currentRangeEnd, targetRangeStart, targetRangeEnd)

Usage

import remapValue from 'remap-value';
remapValue(0.5, 0, 1, 0, 100); // 50
remapValue(-1, 0, 1, 0, 100);  // -100

Tests

npm test

Contributing

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

Release History

  • 1.0.0 Initial release

/remap-value/

    Package Sidebar

    Install

    npm i remap-value

    Weekly Downloads

    1

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • janjarfalk