commonjs-bot / strip-url-auth

Strip the authentication part of a URL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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'

About

Strip the authentication part of a URL

License:MIT License


Languages

Language:JavaScript 100.0%