Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ftybr-add-to-res

connrs80.0.1

Add data to response

readme

ftybr-add-to-req Build Status

To create your middleware object:

var addToReq = require('ftybr-add-to-req');

Once you've instantiated it, you may add this middleware to your ftybr router:

router.registerMiddleware(addToReq('someData', ['win']));

This middleware will add the specified object to each request object