项目作者: futurestudio

项目描述 :
hapi request decorations to conveniently access request data
高级语言: JavaScript
项目地址: git://github.com/futurestudio/hapi-request-utilities.git
创建时间: 2018-07-27T07:14:26Z
项目社区:https://github.com/futurestudio/hapi-request-utilities

开源协议:MIT License

下载



hapi-request-utilities logo





hapi request decorations to conveniently access request data





Installation ·
Usage ·
Methods







hapi-request-utilities Version
Monthly downloads



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 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:

  1. npm i hapi-request-utilities

Usage

Register hapi-request-utilities to your hapi server and that’s it :)

  1. await server.register({
  2. plugin: require('hapi-request-utilities')
  3. })
  4. // 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.

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


futurestud.io ·
GitHub @futurestudio ·
Twitter @futurestud_io