safe-url

Scrub basic auth credentials from your urls so they're safe urls

npm install safe-url
1 downloads in the last week
5 downloads in the last month

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.

npm loves you