A suggestion algorithm implemented using kmeans clustering analysis. It could give you the suggestions with specific data or data array from origin data deck.
First, install the kmeans-suggestion.
npm install kmeans-suggestion
After installation, you can import it into your project. I have exported three packages include commonJS, es6 and umd, for different environment so that you can use it in node and browser.