Plato on Github
Report Home
ampersand/lib/quit.js
Maintainability
71.33
Lines of code
7
Difficulty
6.58
Estimated Errors
0.05
Function weight
By Complexity
By SLOC
// prints message and kills the process module.exports = function (message, exitCode) { if (typeof exitCode === 'undefined') { exitCode = 1; } if (message) console.log('\n' + message + '\n'); process.exit(exitCode || 0); };