Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 223 Bytes

README.md

File metadata and controls

17 lines (10 loc) · 223 Bytes

Normalize numbers

Normalize numbers to [0, 1].

Install

npm i normalize-number

Usage

normalize([min, max], number);

var normalize = require('normalize-number');

normalize([0, 5], 2.5); // => 0.5