@sitespeed.io/throttle
Advanced tools
Comparing version 0.4.3 to 0.5.0
@@ -44,3 +44,3 @@ #!/usr/bin/env node | ||
if (argv.help) { | ||
if (argv.help || argv._[0] === 'help') { | ||
console.log(' Set the connectivity using the throttler (pfctl/tc)'); | ||
@@ -77,3 +77,3 @@ console.log(' Usage: throttler [options]'); | ||
} else { | ||
if (argv.stop) { | ||
if (argv.stop || argv._[0] === 'stop') { | ||
const options = { | ||
@@ -88,5 +88,7 @@ localhost: argv.localhost | ||
let options; | ||
if (argv.profile in profiles) { | ||
options = profiles[argv.profile]; | ||
if (argv.profile in profiles || argv._[0] in profiles) { | ||
options = profiles[argv.profile || argv._[0]]; | ||
console.log('Using profile ' + (argv.profile ? argv.profile : argv._[0])); | ||
} else { | ||
console.log('Using default profile'); | ||
options = { | ||
@@ -93,0 +95,0 @@ up: argv.up || defaultUp, |
# CHANGELOG - throttle | ||
## 0.5.0 2018-12-07 | ||
### Added | ||
* Simplified profile/stop/help. You can now start with: ```throttle $profile``` and stop with ```throttle stop``` | ||
## 0.4.3 2018-09-01 | ||
### Fixed | ||
* Upload throttling was wrong on Mac OS X, thank you [Paul](https://github.com/paulz) for the [PR](https://github.com/sitespeedio/throttle/pull/16). | ||
* Upload throttling was wrong on Mac OS X, thank you [Paul](https://github.com/paulz) for the [PR](https://github.com/sitespeedio/throttle/pull/16). | ||
@@ -29,3 +33,3 @@ ## 0.4.2 2018-05-30 | ||
### Added | ||
### Added | ||
* You can now see the version with --version | ||
@@ -37,2 +41,2 @@ * You can now use pre defined profiles. | ||
### Fixed | ||
* Always remove filters before we try to set them. | ||
* Always remove filters before we try to set them. |
{ | ||
"name": "@sitespeed.io/throttle", | ||
"version": "0.4.3", | ||
"version": "0.5.0", | ||
"description": "Throttle your connection", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -50,2 +50,7 @@ # Simulate slow network connections on Linux and Mac OS X | ||
or even simpler | ||
``` | ||
throttle 3gslow | ||
``` | ||
## Stop simulate the network | ||
@@ -58,2 +63,8 @@ Stopping is as easy as giving the parameter *stop* to throttle. | ||
or | ||
``` | ||
throttle stop | ||
``` | ||
## Add delay on your localhost (Linux only at the moment) | ||
@@ -60,0 +71,0 @@ This is useful if you run [WebPageReplay](https://github.com/catapult-project/catapult/blob/master/web_page_replay_go/README.md) and want to add som latency to your tests. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16854
385
95