https://github.com/webengage/async-u
async µ
https://github.com/webengage/async-u
Last synced: 10 days ago
JSON representation
async µ
- Host: GitHub
- URL: https://github.com/webengage/async-u
- Owner: WebEngage
- Created: 2016-03-01T20:28:45.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-07T18:00:57.000Z (about 10 years ago)
- Last Synced: 2025-02-15T10:16:38.460Z (over 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# async µ
A micro implementation of [caolan/async](https://github.com/caolan/async) for these four methods only
[async.mapSeries](https://github.com/caolan/async#map) |
[async.mapParallel](https://github.com/caolan/async#map) |
[async.series](https://github.com/caolan/async#seriestasks-callback) |
[async.parallel](https://github.com/caolan/async#parallel)
The interface is identical except for these small differences
- `series()` and `parallel()` do not accept an object as `tasks`
- `series()` tasks are passed the result of their predecessor as the second argument
#### The BIG question?
Why use this module when the original is more comprehensive and more battle tested.
Well the only reason is the orignal's size - at [17.6 KB uncompressed](https://github.com/caolan/async/blob/master/dist/async.min.js), it may look bloated to those who only need the four methods.
#### Install
```
npm install --save async-u
```
and...
```js
var async = require('async-u');
```
Use a [frontend module bundle](http://www.slant.co/topics/3900/~frontend-javascript-module-bundlers) to package for browsers
#### License - [WTFPL](http://www.wtfpl.net/)
```
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2016 WebEngage
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
```