1.0.1 • Published 8 years ago

call_module_with_config v1.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

call_module_with_config

NPM version

Install

$ npm install --save call_module_with_config

Usages

var conf = {
  'koa-favicon': {
    'path': 'sss',
    'options': {
      'maxAge': 1
    }
  },
  'koa-etag':{
    
  }
}


var call = require('.')

// call('./favicon', conf, true)

console.dir(call(['koa-favicon', 'koa-etag'], conf).toString())