Redact or remove authentication data from URLs
Installation
Download node at nodejs.org and install it, if you haven't already.
npm install redact-url --save
Usage
var redact = ; // u:p style;// https://REDACTED@example.com // sketchy query params;// https://example.com/password=REDACTED // optional replacment string;// https://example.com/password=XXX // clean URLs are untouched;// https://no-auth-stuff-here.com // non-URLs are untouched;// this is not a url
Tests
npm installnpm test
License
MIT
Zeke Sikelianos <zeke@sikelianos.com> (http://zeke.sikelianos.com/)