Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@tagoro9/promise-utils

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tagoro9/promise-utils

Set of utility functions to use when working with promises

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

@tagoro9/promise-utils

Set of utility functions to use when working with promises

Installation

yarn add @tagoro9/promise-utils

Or with npm

npm install @tagoro9/promise-utils

Usage

Import the functions that you want to use from the module

Functions

  • series. Execute an array of promise providers in series and return an array with the result of all promises
import {series} from '@tagoro9/promise-utils';
async function main() {
  const data = await series([
    () => Promise.resolve(1),
    () => Promise.resolve(2)
  ]); // [1, 2]
}

FAQs

Package last updated on 14 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts