This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start: | |
serve . | |
install: | |
npm install -g serve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var superagent = require('superagent'); | |
var url = 'https://localhost:3000'; | |
var complete = false; | |
var maxReqs = 150; | |
var activeReqs = 0; | |
function run() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Deep Pluck a value from an object by string. | |
* Give the method a dot delemited string to a property of the given | |
* object. It will recurse over it, until it hits the target property | |
* or, if it doesn't exist, it will return an empty string. | |
* | |
* @plug Special thanks to user 'clocklear' for his help with this Deep Pluck | |
* | |
* |