Skip to content

Commit 91281d4

Browse files
committed
docs: mark options as optional
1 parent 2637bb8 commit 91281d4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,10 @@ $ npm install compression
2020
var compression = require('compression')
2121
```
2222

23-
### compression(options)
23+
### compression([options])
2424

2525
Returns the compression middleware using the given `options`.
2626

27-
```js
28-
app.use(compression({
29-
threshold: 512
30-
}))
31-
```
32-
3327
#### Options
3428

3529
`compression()` accepts these properties in the options object. In addition to

0 commit comments

Comments
 (0)