Skip to content

freegink/koa-attach

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa-attach

Koa-attach is a koa middleware for attaching node packages to koa context.

Installation

$ npm install koa-attach

Usage

  • As an array
var attach = require('koa-attach');
app.use(attach([ 'lodash', 'moment' ]);
  • As a dictionary
var attach = require('koa-attach');
app.use(attach({
    $: 'lodash',
    m: 'moment'
}));

License

MIT

About

Koa-attach is a koa middleware for attaching node packages to koa context.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors