@flesch/net-promoter-score
v1.0.0
Published
Calculate a "Net Promoter Score" from an array of integers
Downloads
7
Readme
@flesch/net-promoter-score
📈 Calculate a “Net Promoter Score” from an array of integers.
Install
$ npm install --save @flesch/net-promoter-score
Usage
const nps = require('@flesch/net-promoter-score');
const score = nps([10, 9, 10, 8, 7, 5, 6, 9, 10]);
console.log(score); // => 33