Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    promise-seriespublic

    Promise Series

    This promise-series modules allows you to queue promise-returning functions to execute in series, chaining values and errors down the line, and returning a final promise.

    var series = new PromiseSeries();
    series.add(promiseForFile);
    series.add(promiseForSearch);
    series.add(promiseForWrite);
    series.run().then(function() {
        console.log('All done!');
    });

    This promise utility module has no hard dependencies on any promise implementation, instead relying on the one returned by your functions. Care should be taken to ensure your functions always return promises, even in error.

    install

    npm i promise-series

    Downloadsweekly downloads

    213

    version

    1.0.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar