# na

> An async module that combines async.auto and dependancy injection

Latest version **0.0.1-dev0** (published 2013-11-05) · 0 weekly downloads

## Install

```sh
npm install na
pnpm add na
yarn add na
bun add na
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1-dev0 |
| Published | 2013-11-05 |
| First published | 2013-11-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| Author | Jordan James Klassen |
| Maintainers | forivall |

## Links

- npm: https://www.npmjs.com/package/na
- Repository: https://github.com/forivall/na
- Homepage: http://github.com/forivall/Na.js
- Issues: https://github.com/forivall/na/issues
- npm.io page: https://npm.io/package/na

## Dependencies (3)

- [r42](https://npm.io/package/r42.md) 0.0.7
- [async](https://npm.io/package/async.md) ~0.2.9
- [lodash](https://npm.io/package/lodash.md) ~2.2.1

## Recent versions

- 0.0.1-dev0 (latest) — 2013-11-05

## README

Na.js
====

Takes a mostly new approach to control flow, yet is built upon the existing concepts, such as dependancy injection.

[![Build Status](https://secure.travis-ci.org/forivall/na.png?branch=master)](http://travis-ci.org/forivall/na)



## Getting Started
Install the module with: `npm install na`

```javascript
var na = require('na');
na({ name: (injected_names[, $callback]) { $callback(...) OR return promise; OR return simple_value; }});
```

## Documentation
Currently, Na.js is a facade to `async.auto`, that reduces the need to repeat and unpack arguments.

## Examples
See the test file for now.

## TODOs

- Remove dependancy on async.auto (browser-native)
- Allow more advanced injection parameters ('array[0]': ..., 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

## Similar projects

[shepard](https://github.com/Obvious/shepherd) - I could make the Na.js interface a simplified facade for shepherd.

## Contributing
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](http://gruntjs.com/).

## Release History
_(Nothing yet)_

## License
Copyright (c) 2013 Jordan James Klassen. Licensed under the Apache2 license.

---
_Source: https://npm.io/package/na · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
