New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

resource-race

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
r

resource-race

Find the fastest resource amongst a group

1.1.0
65

Supply Chain Security

100

Vulnerability

66

Quality

76

Maintenance

100

License

Version published
Maintainers
1
Created
Issues
0
                \\__.-"-._____                                    \\__.-"-._____
 \\__.-"-._____  '-(_)---(_)--` \\__.-"-._____                .....'-(_)---(_)--`
  '-(_)---(_)--`                '-(_)---(_)--`

Resource Race

Find the fastest resource amongst a group.

Installing

npm install resource-race

Using

import race from 'resource-race';

const urls = ['https://cdn1.com/img.png','https://cdn2.com/img.png', 'https://cdn3.com/img.png'];

race(urls).then((winner) => {
    console.log(`${winner} won the race!`);
})

FAQs

Package last updated on 08 Oct 2015

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