874
edits
Changes
added jetpack example
This code doesn't necessarily work; it's just aspirational.
=== Jetpack ===
Using Chrome Boosters from a Jetpack Feature is just like using them in any CommonJS-supported environment; the Jetpack runtime takes care of initializing the Chrome Booster framework when a Jetpack Feature is loaded, providing all necessary global functions to the Feature's global scope, and unloading the Chrome Boosters when the Feature is unloaded.
<pre class="brush:js;">
var foo = require('foo');
jetpack.notifications.show("Hello " + foo.bar());
</pre>
=== XULRunner extension, in a chrome-privileged page/window ===