Count the number of repetitions of each word quickly and easily!
Install count-words-repetitions with npm
npm install count-words-repetitions
const cwr = require("count-words-repetitions");
const array = cwr.countWordsRepetitions("test come stai? test");
console.log(array);