Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@evilpacket
Created August 26, 2015 02:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evilpacket/984b344070a001e5c43f to your computer and use it in GitHub Desktop.
Save evilpacket/984b344070a001e5c43f to your computer and use it in GitHub Desktop.
Get list of modules from npm most depended page with jquery
//https://www.npmjs.com/browse/depended
var links = {};
$('div.container.content a').each(function() {
links[this.href.split('/package/')[1]] = 1
});
Object.keys(links).forEach(function(item) {
console.log(item)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment