Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Scrub basic auth credentials from your urls so they're safe urls
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.

Something went wrong with that request. Please try again.