fixjs
Re:Asynchronous JavaScript using awaitify
on Saturday January 14, 2017 @10:40AM (#13398847)
awaitify has a small set of functionality, but it could be really useful, if you want to write clean and readable async code without using any transpilers. Using Awaitify, Function Generators along with `yield` keyword works exactly like async/await function. It also allows to convert old fashioned callback based functions into promise based functions with writing only one line of code. Any feedback would be greatly appreciated.
DefineJS v0.2.4 now offers a new CommonJS/AMD hybrid format
DefineJS: define(function*(){..}); yield require('utils');
hAzzleJS: fast, faster, fastest, hAzzleJS is here NOW
DefineJS v0.2.2 Released – Promised Modules and Detailed Examples
Re:DefineJS – A lightweight implementation of AMD module format
on Sunday November 23, 2014 @04:07AM (#8648227)
Check out the DefineJS-v0.2.2 with a bunch of examples and Promised Modules.
Re:DefineJS – A lightweight implementation of AMD module format
on Sunday November 16, 2014 @06:57PM (#8616065)
A new working example which shows how to use one of the nonstandard syntaxes in DefineJS, something like:
use(['dependency'])
.then(function(dependency){
})
.then()
.cache();
Imagine a control flow in the module definition, or having different private scopes when defining a new module.
Re:DefineJS – A lightweight implementation of AMD module format
on Sunday November 16, 2014 @04:37PM (#8615530)
I just added a working example of DefineJS which shows the way that the regular AMD format gets implemented.
Re:DefineJS – A lightweight implementation of AMD module format
on Sunday November 16, 2014 @10:53AM (#8614467)
One of the main goals here is to provide developers the ability of exposing it to different globals with different behaviors and configuration, which is not possible yet in this version, but it will be there in the next couple of hours.
Re:DefineJS – A lightweight implementation of AMD module format
on Sunday November 16, 2014 @10:46AM (#8614449)
Actually in the current version to expose them to the global scope, you should add the global attribute to your script tag and pass the window as it's value, like global="window".
Re:DefineJS – A lightweight implementation of AMD module format
on Sunday November 16, 2014 @09:26AM (#8614261)
Thanks for your feedbacks. The next release will be available in the next couple of hours, with a bunch of examples and a more technical RRADME.
Re:DefineJS – A lightweight implementation of AMD module format
on Sunday November 16, 2014 @08:14AM (#8614132)
@prayerslayer: nothing wrong with require.js, the main goal is to create a more portable alternative and more importantly to add couple of new and nonstandard ways of modular coding as a proposal for the JavaScript community.