Created
March 8, 2017 23:51
-
-
Save devonwesley/422cba6bc4c999bdc1afddee99697ace to your computer and use it in GitHub Desktop.
Run 'node process.js' in the same folder/directory that the file lives.
This file contains hidden or 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
process.on('exit', code => { | |
console.log(`About to exit with code: ${code}`) | |
}) | |
process.on('uncaughtException', err => { | |
console.error(err) | |
// comment line 9 out, then run the command in the | |
// description. Then comment it back in. and run that same command from | |
// the description again. | |
process.exit(1) | |
}) | |
process.stdin.resume() | |
console.dog() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment