Skip to content

Commit

Permalink
Update stripAuthentication examples
Browse files Browse the repository at this point in the history
  • Loading branch information
rendall committed Jul 16, 2023
1 parent 2d0bafe commit 3003316
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Expand Up @@ -105,10 +105,10 @@ Default: `true`
Strip the [authentication](https://en.wikipedia.org/wiki/Basic_access_authentication) part of the URL.

```js
normalizeUrl('user:password@sindresorhus.com');
normalizeUrl('https://user:password@sindresorhus.com');
//=> 'https://sindresorhus.com'

normalizeUrl('user:password@sindresorhus.com', {stripAuthentication: false});
normalizeUrl('https://user:password@sindresorhus.com', {stripAuthentication: false});
//=> 'https://user:password@sindresorhus.com'
```

Expand Down

0 comments on commit 3003316

Please sign in to comment.