npm.io
4.5.0-beta.2 • Published 9h ago

@eggjs/utils

Licence
MIT
Version
4.5.0-beta.2
Deps
0
Size
27 kB
Vulns
0
Weekly
21.6K
Stars
19.0K

@eggjs/utils

NPM version npm download Node.js Version

Utils for all egg projects.

Installation

npm i @eggjs/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

Contributors

Contributors

Made with contributors-img.

Keywords