Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "asyncitt", | ||
"version": "0.1.3", | ||
"description": "Make array iteration easy with async/await", | ||
"version": "0.1.4", | ||
"description": "Make array iteration easy with async/await and promises", | ||
"main": "index.js", | ||
@@ -38,4 +38,4 @@ "scripts": { | ||
"type": "git", | ||
"url": "https://github.com/antonvs2/asyncitt" | ||
"url": "https://github.com/toniov/asyncitt" | ||
} | ||
} |
# asyncitt [![Build Status](https://travis-ci.org/toniov/asyncitt.svg?branch=master)](https://travis-ci.org/toniov/asyncitt) | ||
> Make array iteration easy with async/await | ||
> Make array iteration easy with async/await and promises | ||
- Same functionality as the ES5 Array iteration methods | ||
- All the methods return a `Promise`, making them awaitable | ||
- Same functionality as the ES5 Array iteration methods we all know | ||
- All the methods return a `Promise`, making them awaitable and thenable | ||
- Allow the usage of async functions as callback | ||
@@ -21,2 +21,4 @@ - Callbacks run in parallel | ||
Smooth asynchronous iteration using `async/await`: | ||
```js | ||
@@ -37,3 +39,13 @@ const { map } = require('asyncitt'); | ||
All methods return a promise so they can just be used outside an async function: | ||
```js | ||
const { map } = require('asyncitt'); | ||
map([1, 2, 3], (num) => asyncCall2(num)).then((foo) => { | ||
// ... | ||
}); | ||
``` | ||
## API | ||
@@ -40,0 +52,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11980
96