0.0.3 • Published 9 years ago

gh-popular-words v0.0.3

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

gh-popular-words

Get sorted list of popular words from descriptions of repositories

Install

$ npm install -g gh-popular-words

Usage

var gpw = require('gh-popular-words');
var opts = {limit: 5, stopwords: ['for', 'with', 'and', 'the', 'from'], minwordlength: 5};
gpw('saromanov', opts , function(err, data){
   console.log(data);
});

Output will be

[ { word: 'implementation', count: 13 },
  { word: 'python', count: 5 },
  { word: 'learning', count: 5 },
  { word: 'simple', count: 4 },
  { word: 'experiments', count: 4 } ]
  

or just with

var gpw = require('./gh-popular-words');
gpw('saromanov', function(err, data){
   console.log(data);
});

The word "implementation" found 13 times on the descriptions, word "python" - 5 times, etc.

License

MIT

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago