strip-url-auth

2.0.0 • Public • Published

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'

Package Sidebar

Install

npm i strip-url-auth

Weekly Downloads

59,270

Version

2.0.0

License

MIT

Unpacked Size

2.33 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus