Scrub basic auth credentials from your urls so they're safe urls
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
index.js
package.json
readme.md

readme.md

safe-url

Want to print out urls with BASIC AUTH CREDS in them? Use this module to SCRUB THEM PUPPIES OUT.

example

> var safeUrl = require('./');
undefined
> var url = 'https://iamauser:supersekritpassword@this.is.my.couch.jesusabdullah.net'
undefined
> safeUrl(url)
'https://iamauser:******@this.is.my.couch.jesusabdullah.net'
> 

thx

Thanks to Mikeal Rogers for putting this one-liner in his node couchapp module.

license

Same as node.couchapp.js. You'll have to ask Mikeal.