Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 819 Bytes

how-can-i-use-it.md

File metadata and controls

26 lines (19 loc) · 819 Bytes

How can I use it?

In the browser

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.

In Node.js

npm install di@v2

See the node example on how to use the DI in regular ES5.

Using ES6

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.