An open API service indexing awesome lists of open source software.

https://github.com/wsw0108/edan

Expose options passed to app as `appInfo.options` and `app.config.appOptions`
https://github.com/wsw0108/edan

egg egg-framework

Last synced: 4 months ago
JSON representation

Expose options passed to app as `appInfo.options` and `app.config.appOptions`

Awesome Lists containing this project

README

          

# edan

Expose options passed to app as `appInfo.options` and `app.config.appOptions`.

## Usage

you can use options passed to an app like below:
```
// config/config.${env}.js
module.exports = appInfo => {
const config = {};
config.something = appInfo.options.something;
return config;
}
```
or
```
// app.js
module.exports = app => {
console.log(app.config.appOptions);
}
```

## License

[MIT](LICENSE)