In a node.js script that I\'m working on, I want to print all node.js modules (installed using npm) to the command line. How can I do this?
console.log(__fil
for package in `sudo npm -g ls --depth=0 --parseable`; do printf "${package##*/}\n"; done