This is a simple package that uses Voca library to create a simple repetition analysis of a words present in a document, the test.js file has an example, just run node test.js and it will give you this:
{ bad: 2, boys: 2, whatcha: 1, gonna: 1, do: 1 }