Last active
May 22, 2017 14:04
-
-
Save deadcoder0904/5fcb49d55f7de282539eba0d8e3368dd to your computer and use it in GitHub Desktop.
Download all node school modules in 1 click
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
var el = $('.workshopper>code'); | |
var str = ''; | |
for(var i = 0 ; i < el.length ; i++){ | |
if(el[i].innerHTML.indexOf('npm install -g') !== -1) | |
str += 'sudo npm install -g' + el[i].innerHTML.substr(14) + '\n'; | |
}; | |
console.log(str); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment