Created
August 26, 2015 02:40
-
-
Save evilpacket/984b344070a001e5c43f to your computer and use it in GitHub Desktop.
Get list of modules from npm most depended page with jquery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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