$ npm install error-encode
Encode an error so it can be JSON serialized without losing information
$ component install mocha-ci/error-encode
MIT