Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Koa middleware to add all enumerable keys to the context of each request

License

NotificationsYou must be signed in to change notification settings

cesarandreu/koa-add-to-context

Repository files navigation

npm versionbuild statuscoverage status

Koa middleware to add all enumerable keys to the context of each request

Installation

$ npm i koa-add-to-context

Usage

varaddToContext=require('koa-add-to-context')varkoa=require('koa')varapp=koa()app.use(addToContext({foo:'foo'}))app.use(function*(){this.body=this.foo})

API

addToContext(obj:Object):GeneratorFunction

Test

npmtest

License

MIT

About

Koa middleware to add all enumerable keys to the context of each request

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp