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'
Strip the authentication part of a URL
$ npm install strip-url-auth
import stripUrlAuth from 'strip-url-auth';
stripUrlAuth('https://user:pass@sindresorhus.com');
//=> 'https://sindresorhus.com'
npm i strip-url-auth
59,270
2.0.0
MIT
2.33 kB
4