Protected Readonly configConfig dependency
Static Private directoryRoot path
Protected initializeProtected loadStatic rootChange application root method. Application root is equal process.cwd() by default
FileConfig.root('/www/my-app/');
container.bind<IConfig>(Types.Config)
.to(FileConfig.root('/www/my-app/'))
.inSingletonScope();
Description
File-based config loader
Features
Example: ./config.json
Example: ./index.ts
See
@biorate/config-loader docs for details