exit-code

1.0.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    46,157
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    46,157
  • 1.0.1
    1

Package Sidebar

Install

npm i exit-code

Weekly Downloads

46,158

Version

1.0.2

License

ISC

Last publish

Collaborators

  • isaacs