cool-error
A shim module for wrapping error in a more elegant way!
Install
npm install cool-error
Usage
code
var toss = // equals `throw new Error('error!')` // when the second arg specified to true // it will log the error message before throwing an error instance // json format supported
colors
Feel free to use console.log('xxx'.red)
in your code because colors is wrapped underlying.