An async module that combines async.auto and dependancy injection
Takes a mostly new approach to control flow, yet is built upon the existing concepts, such as dependancy injection.
Install the module with:
npm install na
var na = require'na';na name: injected_names $callback $callback OR return promise; OR return simple_value; ;
Currently, Na.js is a facade to
async.auto, that reduces the need to repeat and unpack arguments.
See the test file for now.
- Remove dependancy on async.auto (browser-native)
- Allow more advanced injection parameters ('array': ..., slices, 'object.foo')
- Better error handling
- Use cssauron-falafel to extract the $annotate function from angularjs directly (and other code bits from angularjs; stay tuned for more)
- native support for returning promises of any library (just supply a factory function!)
- anything else I remember
shepard - I could make the Na.js interface a simplified facade for shepherd.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Copyright (c) 2013 Jordan James Klassen. Licensed under the Apache2 license.