Calculate percentage difference between two numbers
$ npm install percentage-diff
const percentageDiff = require('percentage-diff');
percentageDiff(50, 75);
//=> 50
percentageDiff.toPercentage(50);
//=> 50%
percentageDiff(45,35);
//=> -22.22
Type: number
Type: number
Type: number
- generator-lnm - Awesome node module generator