brandingbrand/ghostbuster — pull request #2 by cjihrig (2012-11-27 18:44:29+00:00)
Title: Exit callback function

Added an exit callback function. The callback function is an optional third parameter to spawn(). The callback is executed when the PhantomJS child process exits. The child process exit code is passed to the callback function.