node package manager

strip-url-auth

strip-url-auth Build Status

Strip the authentication part of a URL

Install

$ npm install --save strip-url-auth

Usage

var stripUrlAuth = require('strip-url-auth');
 
stripUrlAuth('https://user:pass@sindresorhus.com');
//=> 'https://sindresorhus.com' 

License

MIT © Sindre Sorhus