Skip to content

SnowStormIO/error-tojson

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

This package is incompatible with MongoDB native driver. Incompatibility is manifesting as a crash whenever mongo server returns and error. See this PR discussion for more info.

About

Adds Error.toJSON(), so we can easily stringify the error, for example when sending them over websockets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%