code-to-signal

1.0.2 • Public • Published

code-to-signal

Build Status Coverage Status NPM version

shim to convert integer exit codes to named signals.

var codeToSignal = require('code-to-signal')
var signal = codeToSignal(132) // signal = 'SIGILL'

API

codeToSignal.shimError(error)

Populate the signal field on an error object that only has an exit code.

License

ISC

Readme

Keywords

Package Sidebar

Install

npm i code-to-signal

Weekly Downloads

0

Version

1.0.2

License

ISC

Last publish

Collaborators

  • bcoe