error-render
Install
npm install error-render --save
Usage
var er = ;var error = 'Whoops !'; // pretty error with the details (metadata)console; // shortcut of console.error(er.details(error));er
Pretty JSON
er;
Pretty error without the metadata of the error instance
var pe = ; console;
Provided by pretty-error
Unit tests
error-render
is tested with Unit.js
Run the tests
cd node_modules/error-render npm test
LICENSE
Author
Nicolas Talle |