Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

exit-code

isaacs201kISC1.0.2

process.exitCode behavior back-ported from io.js and Node.js 0.12+

readme

exit-code

process.exitCode behavior back-ported from io.js and Node.js 0.12+

USAGE

require('exit-code')

process.exitCode = 2

// do some other stuff
// when the process exits, it'll do it with a code of 2