$ cnpm install strip-url-auth
Strip the authentication part of a URL
$ npm install --save strip-url-auth
var stripUrlAuth = require('strip-url-auth');
stripUrlAuth('https://user:pass@sindresorhus.com');
//=> 'https://sindresorhus.com'
MIT © Sindre Sorhus
Copyright 2013 - present © cnpmjs.org