hapi-request-utilities
v4.1.1
Published
hapi request decorations to conveniently access request data
Downloads
5
Readme
Introduction
A hapi plugin that decorates the request
with methods to quickly and conveniently access incoming data.
Requirements
hapi v19 (or later) and Node.js v12 (or newer)
This plugin requires hapi v19 (or later) and Node.js v12 or newer.
Compatibility
| Major Release | hapi.js version | Node.js version |
| --- | --- | --- |
| v4
| >=18 hapi
| >=12
|
| v3
| >=18 hapi
| >=8
|
| v2
| >=17 hapi
| >=8
|
Installation
Add hapi-request-utilities
as a dependency to your project:
npm i hapi-request-utilities
Usage
Register hapi-request-utilities
to your hapi server and that's it :)
await server.register({
plugin: require('hapi-request-utilities')
})
// went smooth like chocolate :)
Methods
Find all available request
decorations in the extensive documentation.
Feature Requests
Do you miss a feature? Please don’t hesitate to create an issue with a short description of your desired addition to this plugin.
Links & Resources
- hapi tutorial series with 100+ tutorials
Contributing
- Create a fork
- Create your feature branch:
git checkout -b my-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request 🚀
License
MIT © Future Studio
futurestud.io · GitHub @futurestudio · Twitter @futurestud_io