strip-url-auth

v2.0.0
Strip the authentication part of a URL
string url uri address auth authentication user username pass and 3 more...

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:[email protected]');
//=> 'https://sindresorhus.com'
npm i strip-url-auth

Metadata

  • MIT
  • >=12
  • Sindre Sorhus
  • released 4/7/2021

Downloads

Maintainers