1.0.0 ā¢ Published 6 years ago
percent2 v1.0.0
Percent2
š Percent control done right
Like a percent
, but 52 bytes. Inspired by @anoru advice.
Install
$ npm install percent2
Examples
Calculate percentage
import percent2 from 'percent2';
console.log(percent2(5, 20, 0)); // => 25
1.0.0
6 years ago