it would be cool if there was a way to show which commands npm was running in its scripts.
Edit: Fair points on all the comments below, pardon my ignorance :)
http://en.wikipedia.org/wiki/Halting_problem
ELI5: It is proven to be impossible to tell exactly what a program is going to do without executing it.
You can obviously tell what a trivial program will do by looking at it.
(If the halting problem is a problem, try executing it in a sandbox.)
This is an idea I (with some collaborators) have explored in a more general way for secure shell scripting: shill-lang.org.
cp /bin/rm ponies ; ./ponies -rf /Of course, not everything is as obvious to detect as deleting files :)