plain-error-object
v1.0.1
Published
Convert a JavaScript Error object into a plain JSON serializable object
Downloads
122
Readme
plain-error-object
Converts an Error
object into a JSON.stringify
-able object.
Usage
var plainError = require('plain-error-object');
var err = new Error('this is an error');
var jsonResult = JSON.stringify(plainError(err));