Wondering what’s next for npm?Check out our public roadmap! »

error-tojson

0.0.1 • Public • Published

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

Install

npm i error-tojson

DownloadsWeekly Downloads

1,851

Version

0.0.1

License

MIT

Last publish

Collaborators

  • avatar