Changing docs

This commit is contained in:
soulgalore 2022-04-14 11:29:09 +02:00
parent 628c50859f
commit eb5467e85d
1 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ throttle --stop --localhost
```javascript
const throttle = require('@sitespeed.io/throttle');
import throttle from '@sitespeed.io/throttle'
// Returns a promise
throttle.start({up: 360, down: 780, rtt: 200}).then(() => ...
```
@ -121,7 +121,7 @@ throttle.start({up: 360, down: 780, rtt: 200}).then(() => ...
or
```javascript
const throttle = require('@sitespeed.io/throttle');
import throttle from '@sitespeed.io/throttle'
// Returns a promise
const options = {up: 360, down: 780, rtt: 200};
await throttle.start(options);