https://github.com/futurestudio/hapi-request-utilities
hapi request decorations to conveniently access request data
https://github.com/futurestudio/hapi-request-utilities
future-studio-university hapi hapi-plugin hapijs request-decorations
Last synced: 10 months ago
JSON representation
hapi request decorations to conveniently access request data
- Host: GitHub
- URL: https://github.com/futurestudio/hapi-request-utilities
- Owner: futurestudio
- License: mit
- Created: 2018-07-27T07:14:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-01-25T08:37:05.000Z (about 2 years ago)
- Last Synced: 2025-03-26T13:21:14.829Z (11 months ago)
- Topics: future-studio-university, hapi, hapi-plugin, hapijs, request-decorations
- Language: JavaScript
- Homepage: https://superchargejs.com/docs/requests
- Size: 264 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
hapi request decorations to conveniently access request data
Installation ·
Usage ·
Methods
Follow @marcuspoehls for updates!
------
Development of this hapi plugin is supported by Future Studio University 🚀
Join the Future Studio University and Skyrocket in Node.js
------
## 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](https://github.com/hapijs/hapi) 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:
```bash
npm i hapi-request-utilities
```
## Usage
Register `hapi-request-utilities` to your hapi server and that's it :)
```js
await server.register({
plugin: require('hapi-request-utilities')
})
// went smooth like chocolate :)
```
## Methods
Find all available `request` decorations in [the extensive documentation](https://superchargejs.com/docs/master/requests).
## Feature Requests
Do you miss a feature? Please don’t hesitate to
[create an issue](https://github.com/futurestudio/hapi-request-utilities/issues) with a short description of your desired addition to this plugin.
## Links & Resources
- [hapi tutorial series](https://futurestud.io/tutorials/hapi-get-your-server-up-and-running) with 100+ tutorials
## Contributing
1. Create a fork
2. Create your feature branch: `git checkout -b my-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request 🚀
## License
MIT © [Future Studio](https://futurestud.io)
---
> [futurestud.io](https://futurestud.io) ·
> GitHub [@futurestudio](https://github.com/futurestudio/) ·
> Twitter [@futurestud_io](https://twitter.com/futurestud_io)