strip-url-auth

Strip the authentication part of a URL

MIT License

Downloads
248.8K
Stars
17
Committers
5

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'
Package Rankings
Top 19.87% on Bower.io
Top 3.13% on Npmjs.org