An open API service indexing awesome lists of open source software.

https://github.com/rezigned/require

Provide a modular way to create javascirpt module with ease.
https://github.com/rezigned/require

Last synced: about 1 year ago
JSON representation

Provide a modular way to create javascirpt module with ease.

Awesome Lists containing this project

README

          

h1. JS Require (Alpha)

Create a modular javascript module with ease.

h2. License

wtf

h2. Company

"Landau Reece.":http://www.landaureece.com

h2. Usage

// define a new module
require(function(){

var Ajax = {
// your code ...
};

var AwesomeAjax = (function(){
// your code
});

return {
// this is your module's namespace
namespace: 'ajax',

// these will expose to the outside world
Ajax: Ajax,
Ajax2: AwesomeAjax
}
});

// usage
var aj = require('ajax').Ajax;

// or another way
var aj = require('ajax.Ajax');

aj.get('http://google.com');

h2. New features to implement

# load other resources