Download the production version or development version of the library, and include it in your page as usual:
<script src="context-traits.js"></script>
To load the library in an arbitrary namespace (for example cop
) do:
<script>this.exports = cop;</script>
<script src="context-traits.js"></script>
Don’t forget to include the library dependencies, Underscore and Traits.
Install the module with:
npm install context-traits
And load it as usual:
var cop = require('context-traits');