Installation
npm install --save json-boom
Usage
const Boom = ;const convert = ; const err = Boom;const body = ; /* { errors: [ { errorCode: '404', error: 'Not Found', message: 'My Error', errorData: [] } ]}*/ const err = Boom;const body = ; /* { errors: [ { errorCode: '404', error: 'Not Found', message: 'My Error', errorData: [{field: 'email'}] } ]}*/