resource-race
Advanced tools
Comparing version
{ | ||
"name": "resource-race", | ||
"version": "1.0.1", | ||
"description": "Module for finding the fastest resource", | ||
"main": "index.js", | ||
"version": "1.1.0", | ||
"description": "Find the fastest resource amongst a group", | ||
"main": "dist/race.js", | ||
"scripts": { | ||
@@ -16,2 +16,5 @@ "test": "echo \"Error: no test specified\" && exit 1" | ||
"fetch", | ||
"xhr", | ||
"cdn", | ||
"promises", | ||
"resource" | ||
@@ -24,3 +27,9 @@ ], | ||
}, | ||
"homepage": "https://github.com/bhstahl/resource-race#readme" | ||
"homepage": "https://github.com/bhstahl/resource-race#readme", | ||
"devDependencies": { | ||
"eslint": "^1.6.0", | ||
"gulp": "^3.9.0", | ||
"gulp-babel": "^5.2.1", | ||
"gulp-concat": "^2.6.0" | ||
} | ||
} |
@@ -1,8 +0,8 @@ | ||
\\__.-"-._____ \\__.-"-._____ | ||
'-(_)---(_)--` '-(_)---(_)--` | ||
\\__.-"-._____ \\__.-"-._____ | ||
'-(_)---(_)--` '-(_)---(_)--` | ||
\\__.-"-._____ \\__.-"-._____ | ||
\\__.-"-._____ '-(_)---(_)--` \\__.-"-._____ .....'-(_)---(_)--` | ||
'-(_)---(_)--` '-(_)---(_)--` | ||
# Resource Race | ||
An npm module for finding the fastest resource (url) | ||
Find the fastest resource amongst a group. | ||
@@ -22,3 +22,3 @@ | ||
let urls = ['https://apple.com','https://google.com', 'https://amazon.com']; | ||
const urls = ['https://cdn1.com/img.png','https://cdn2.com/img.png', 'https://cdn3.com/img.png']; | ||
@@ -25,0 +25,0 @@ race(urls).then((winner) => { |
Sorry, the diff of this file is not supported yet
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
8298
176.05%8
60%24
242.86%1
-50%4
Infinity%