Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gh-popular-words

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gh-popular-words

Show popular words from descriptions of user repositories

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 05 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc