https://github.com/isaacs/exit-code
`process.exitCode` behavior back-ported from io.js and Node.js 0.12+
https://github.com/isaacs/exit-code
Last synced: 5 months ago
JSON representation
`process.exitCode` behavior back-ported from io.js and Node.js 0.12+
- Host: GitHub
- URL: https://github.com/isaacs/exit-code
- Owner: isaacs
- License: isc
- Created: 2015-04-25T21:06:48.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2022-02-26T23:05:51.000Z (almost 4 years ago)
- Last Synced: 2024-05-19T05:21:07.422Z (over 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nodejs-precise - exit-code - code .svg?style=social&label=Star&maxAge=2592000?style=flat-square)]() | Node.js 0.12 <code>process.exitCode</code> polyfill. | (Packages / Polyfills Node.js)
- awesome-nodejs-cn - exit-code - Node.js 0.12 `process.exitCode` polyfill. (Number / Polyfills)
README
# exit-code
`process.exitCode` behavior back-ported from io.js and Node.js 0.12+
## USAGE
```javascript
require('exit-code')
process.exitCode = 2
// do some other stuff
// when the process exits, it'll do it with a code of 2
```