Lawsun d230cfbce0 first commit %!s(int64=2) %!d(string=hai) anos
..
lib d230cfbce0 first commit %!s(int64=2) %!d(string=hai) anos
History.md d230cfbce0 first commit %!s(int64=2) %!d(string=hai) anos
LICENSE d230cfbce0 first commit %!s(int64=2) %!d(string=hai) anos
README.md d230cfbce0 first commit %!s(int64=2) %!d(string=hai) anos
README.zh-CN.md d230cfbce0 first commit %!s(int64=2) %!d(string=hai) anos
index.js d230cfbce0 first commit %!s(int64=2) %!d(string=hai) anos
package.json d230cfbce0 first commit %!s(int64=2) %!d(string=hai) anos

README.md

egg-utils

NPM version build status Test coverage David deps npm download

Utils for all egg projects.

Installation

$ npm i egg-utils

API

getPlugins(options)

  • {String} baseDir - the current directory of application
  • {String} framework - the directory of framework
  • {String} env - egg environment

getLoadUnits(options)

  • {String} baseDir - the current directory of application
  • {String} framework - the directory of framework
  • {String} env - egg environment

getConfig(options)

  • {String} baseDir - the current directory of application
  • {String} framework - the directory of framework
  • {String} env - egg environment

getFrameworkPath(options)

  • {String} baseDir - the current directory of application
  • {String} framework - the directory of framework

License

MIT