substack/insert-module-globals — pull request #15 by ForbesLindesay (2013-06-27 04:55:03+00:00)
Title: Use `token-scope` to fast track some files

When files don't even have the relevant identifiers, there is no need to spend time walking the parse tree. Token-scope can run at as much as 3 times the speed, and most large files will probably have no node.js style deps to find. Unless there happen to be variables named `process` or `global` or whatever, this lets you skip the more complex parsing stage.