# strip-url-auth

> Strip the authentication part of a URL

Latest version **2.0.0** (published 2021-04-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install strip-url-auth
pnpm add strip-url-auth
yarn add strip-url-auth
bun add strip-url-auth
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2021-04-07 |
| First published | 2015-01-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=12 |
| Dependencies | 0 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 20 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | string, url, uri, address, auth, authentication, user, username, pass, password, basic |

## Links

- npm: https://www.npmjs.com/package/strip-url-auth
- Repository: https://github.com/sindresorhus/strip-url-auth
- Homepage: https://github.com/sindresorhus/strip-url-auth#readme
- Issues: https://github.com/sindresorhus/strip-url-auth/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/strip-url-auth

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 2.0.0 (latest) — 2021-04-07
- 1.0.1 — 2015-07-02
- 1.0.0 — 2015-01-14

## README

# strip-url-auth

> Strip the [authentication](https://en.wikipedia.org/wiki/Basic_access_authentication) part of a URL

## Install

```
$ npm install strip-url-auth
```

## Usage

```js
import stripUrlAuth from 'strip-url-auth';

stripUrlAuth('https://user:pass@sindresorhus.com');
//=> 'https://sindresorhus.com'
```

---
_Source: https://npm.io/package/strip-url-auth · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
