Co.Koa

An MVC for NodeJS built on Koa

View on GitHub
Home | Documentation | Core | CLI | Install

Home > Documentation > Dependency Manager > Properties

Co.Koa header

Dependency Manager:

Properties

The Dependency Manager is also supplied with some handy properties:

$.env Exposes an object that most notably contains the project's [mongoose](http://mongoosejs.com/) object
$.environment The name of the running environment (specified when launching Co.Koa); defaults to 'development'.
$.i18n the default language specified in config.json
$.logger Simply returns the `.log()` and `.error()` methods defined in your `./config/logger.js`
$.messageFolder The absolute location of your i18n folder
$.root The root directory of your project