https://github.com/softonic/hapi-axios-errors
Hapi plugin to convert unhandled axios errors into boom errors
https://github.com/softonic/hapi-axios-errors
axios boom hapi normalize
Last synced: 9 months ago
JSON representation
Hapi plugin to convert unhandled axios errors into boom errors
- Host: GitHub
- URL: https://github.com/softonic/hapi-axios-errors
- Owner: softonic
- License: other
- Created: 2017-10-13T10:51:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T07:17:59.000Z (about 3 years ago)
- Last Synced: 2025-04-10T22:44:06.011Z (9 months ago)
- Topics: axios, boom, hapi, normalize
- Language: JavaScript
- Size: 1.38 MB
- Stars: 3
- Watchers: 6
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @softonic/hapi-axios-errors
Hapi plugin to convert unhandled axios errors into boom errors
## Installation
```bash
npm install @softonic/hapi-axios-errors
```
## Usage
```js
// 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:
```bash
npm test
```
## Contribute
1. Fork it: `git clone https://github.com/softonic/hapi-axios-errors.git`
2. Create your feature branch: `git checkout -b feature/my-new-feature`
3. Commit your changes: `git commit -am 'Added some feature'`
4. Check the build: `npm run build`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D