Skip to content

DivineGod/plain-error-object

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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));

About

Convert a JavaScript Error object into a plain JSON serializable object

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published