Skip to content

bhstahl/resource-race

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

                \\__.-"-._____                                    \\__.-"-._____
 \\__.-"-._____  '-(_)---(_)--` \\__.-"-._____                .....'-(_)---(_)--`
  '-(_)---(_)--`                '-(_)---(_)--`

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

About

NPM package to find the fastest resource amongst a group

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published