error-tojson
v0.0.1
Published
adds Error.toJSON() to make errors stringifieble
Downloads
1,054
Readme
error-tojson
Adds Error.toJSON(), so we can easily stringify the error, for example when sending them over websockets
// just do it before anything else
require('error-tojson');