2.0.1 • Published 8 years ago

call_with_config v2.0.1

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

call_with_config

call funtion with config(json object)

gitter NPM version Build codecov.io js-standard-style

Install

$ npm i -S call_with_config@2

API

call_with_config(key, config, cumtomKey)

  • key = module name or local module
  • config for param
  • if cumtomKey exist, load config from configcumtomKey

Usages

var call_with_config = require('.')

var r = call_with_config('./favicon', {
  './favicon':{
    'path': 'sss'
  },
  'empty-favicon':{
    
  }
});

console.dir(r.toString())

or

var call_with_config = require('.')

var r = call_with_config('koa-favicon', {
  'koa-favicon':{
    'path': 'sss',
    'options': {
      'maxAge': 1
    }
  }
});

console.dir(r.toString())
2.0.1

8 years ago

2.0.0

8 years ago

1.0.3

8 years ago

1.0.1

8 years ago