@softonic/hapi-axios-errors
v3.0.0
Published
Hapi plugin to convert unhandled axios errors into boom errors
Downloads
276
Maintainers
Readme
@softonic/hapi-axios-errors
Hapi plugin to convert unhandled axios errors into boom errors
Installation
npm install @softonic/hapi-axios-errors
Usage
// CommonJS
// const HapiAxiosErrors = require('@softonic/hapi-axios-errors');
// ES2015
import HapiAxiosErrors from '@softonic/hapi-axios-errors';
server.register([
HapiAxiosErrors
]);
Testing
Clone the repository and execute:
npm test
Contribute
- Fork it:
git clone https://github.com/softonic/hapi-axios-errors.git
- Create your feature branch:
git checkout -b feature/my-new-feature
- Commit your changes:
git commit -am 'Added some feature'
- Check the build:
npm run build
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D