Last active
June 30, 2016 08:56
-
-
Save sbstjn/327ec789c13df3a0547b65905b5fea06 to your computer and use it in GitHub Desktop.
Example usage of `latenz` npm module
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
const Latenz = require('latenz'); | |
const l = new Latenz(); | |
l.measure('sbstjn.com').then(result => { | |
console.log(result); | |
}).catch((e) => { | |
throw e; | |
}); |
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
$ > npm install latenz -g | |
$ > latenz sbstjn.com | |
host: sbstjn.com | |
Name Lookup: 10ms | |
Connection: 3ms (13ms) | |
Response: 63ms (76ms) | |
Received: 5ms (81ms) | |
total: 81ms |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment