See the kitchen-di example on how to use the DI with RequireJS.
You will need:
- a browser that supports
Map
, or include a polyfill, - include the Traceur runtime.
npm install di@v2
See the node example on how to use the DI in regular ES5.
If you decide to write your project in ES6, you can consume the ES6 source code in src/
and compile it with Traceur on your own, similar to the kitchen-di example.