@softonic/hapi-axios-errors

3.0.0 • Public • Published

@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

  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
  5. Push to the branch: git push origin my-new-feature
  6. Submit a pull request :D

Package Sidebar

Install

npm i @softonic/hapi-axios-errors

Weekly Downloads

28

Version

3.0.0

License

Apache-2.0

Unpacked Size

16.8 kB

Total Files

11

Last publish

Collaborators

  • softonic