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');
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');
npm i error-tojson
386
0.0.1
MIT