0.0.5 • Published 11 years ago

lilprovider v0.0.5

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

lilprovider

A li'l provide/require shim to share modules in the browser.

Description

lilprovider adds provide and require methods to the current context.

Basic usage

create and provide your module:

(function () {

  var blender = {
    blend: function () {}
  }

  provide('blender', blender);

}());

then somewhere else require and use your module:

(function () {
  
  var blender = require('blender');
  blender.blend();

}());

License

Copyright (c) 2012 August Hovland Licensed under the MIT license.

0.0.5

11 years ago

0.0.4

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago