Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

strip-url-auth

sindresorhus420.3kMIT2.0.0

Strip the authentication part of a URL

string, url, uri, address, auth, authentication, user, username, pass, password, basic

readme

strip-url-auth

Strip the authentication part of a URL

Install

$ npm install strip-url-auth

Usage

import stripUrlAuth from 'strip-url-auth';

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