Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ext-promise

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ext-promise

Extends native Promise by helpful methods

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
Maintainers
1
Weekly downloads
 
Created
Source

ExtPromise

Extends native Promise by helpful methods

Install

npm install ext-promise

Simple usage

let ExtPromise = require('ext-promise');

ExtPromise
    .all({
        result1: 1,
        result2: Promise.resolve(2),
        result3: new Promise(resolve =>
            setTimeout(() => resolve(3), 100)
        )
    })
    .then(results => console.log(results)); // { result1: 1, result2: 2, result3: 3 }

Methods

.all(Array collection|Object hash) -> Promise.<Array|Object>

Extended static method Promise.all. New method enters object parameter

Keywords

FAQs

Package last updated on 17 Mar 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc