1.0.3 • Published 9 years ago

ra.js v1.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

RaJS

require + ajax in browser with ES6 generators.

Example

ra(function*(require, ajax) {
    var JQUERY  = '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js',
    $           = yield require(JQUERY),
    zen         = yield ajax('https://api.github.com/zen');
   
   console.log(zen);
   $('body').append(zen);
}).on('error', function(error) {
   console.log(error);
}).on('end', function() {
   console.log('end');
});

License

MIT

1.0.3

9 years ago

1.0.2

9 years ago