strip-url-auth

Strip the authentication part of a URL

Usage no npm install needed!

<script type="module">
  import stripUrlAuth from 'https://cdn.skypack.dev/strip-url-auth';
</script>

README

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'