Skip to content

Commit

Permalink
docs(readme): replace var statements (#70)
Browse files Browse the repository at this point in the history
Signed-off-by: Frazer Smith <frazer.dev@outlook.com>
  • Loading branch information
Fdawgs authored Oct 24, 2024
1 parent a5fb073 commit 8e8671b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ $ npm i @fastify/forwarded
## API

```js
var forwarded = require('@fastify/forwarded')
const forwarded = require('@fastify/forwarded')
```

### forwarded(req)

```js
var addresses = forwarded(req)
const addresses = forwarded(req)
```

Parse the `X-Forwarded-For` header from the request. Returns an array
Expand Down

0 comments on commit 8e8671b

Please sign in to comment.