Recursive loop promise generator for yeps
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
.editorconfig
.eslintrc
.gitignore
.istanbul.yml
.travis.yml
LICENSE
README.md
appveyor.yml
index.js
package.json

README.md

Recursive loop promise generator for yeps

It helps with looping promises. It's promises middleware realisation.

NPM

npm version Build Status Coverage Status Linux Build Windows Build

Dependency Status devDependency Status NSP Status

License GitHub stars GitHub forks GitHub issues Twitter

How to install

npm i -S yeps-promisify

How to use

const promisify = require('yeps-promisify');

async () => {
    const context = {};
    
    const promises = [
        async (context) => {
            // some stuff with context
        },
        async (context) => {
            // some other stuff with context
        },
        ...
    ];
    
    try {
        await promisify(context, promises);
    } catch (error) {
        // error handler
    }
}    

YEPS documentation