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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i error-tojson

      Weekly Downloads

      386

      Version

      0.0.1

      License

      MIT

      Last publish

      Collaborators

      • avvs