1.1.1 • Published 9 years ago

resource-race v1.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago
                \\__.-"-._____                                    \\__.-"-._____
 \\__.-"-._____  '-(_)---(_)--` \\__.-"-._____                .....'-(_)---(_)--`
  '-(_)---(_)--`                '-(_)---(_)--`

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!`);
});