A IoC / Dependency Injection Container for node.js
Last updated 8 years ago by thehydroimpulse .
Repository · Original npm · Tarball · package.json
$ cnpm install ettore 
SYNC missed versions from official npm registry.


Ettore is a node.js dependency injection container built using coffee-script.

It provides a project a huge boost in productivity, modularity, and overall testability and effeciency. By de-coupling all your components and allowing each dependency being managed not by it's used class or component but a system wide manager that it's job is that.

Your classes / components will not know how or where an object is coming from. It doesn't need to load or require anything. It just needs to use the object and get the job done.

When in testing mode, you can mock specific objects to your needs. Because many systems you want to test rely on or have dependencies themselves this makes testing extremely hard, as your not only testing that module but it's dependencies and how they work.

For example, let's say your testing a controller within a model-view-controller pattern. Your controller is of the following:

class App.ApplicationController extends DefaultController

	index: ->
		@render 'someView'

You only want to test rendering through a controller and nothing else. Well here you have a problem. Your depending on the database to do some action; in this case, reading or fetching. You could instead create a Database mock that would remove any database action.

This is what you can do with Ettore.

Current Tags

  • 0.0.1-16                                ...           latest (8 years ago)

7 Versions

  • 0.0.1-16                                ...           8 years ago
  • 0.0.1-11                                ...           8 years ago
  • 0.0.1-10                                ...           8 years ago
  • 0.0.1-5                                ...           8 years ago
  • 0.0.1-4                                ...           8 years ago
  • 0.0.1-3                                ...           8 years ago
  • 0.0.1                                ...           8 years ago
Maintainers (1)
Today 0
This Week 3
This Month 3
Last Day 0
Last Week 0
Last Month 2
Dependencies (3)
Dev Dependencies (1)
Dependents (0)

Copyright 2014 - 2017 © |