1.0.0 • Published 4 years ago

@flesch/net-promoter-score v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

@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