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

Readme

Keywords

Package Sidebar

Install

npm i error-tojson

Weekly Downloads

433

Version

0.0.1

License

MIT

Last publish

Collaborators

  • avvs