Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 685 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 685 Bytes

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