url-mask
Utility for masking url userinfo
Getting Started
$ npm install url-mask
Usage
const assert = ;const urlmask = ;const url = 'http://user:secret@github.com/'; //// By default both username and password are masked with *//let masked = ;assert;console; //// Additional options can be specified not to mask the username// or use a different masking character//masked = ;assert;console; masked = ;assert;console;
Notes
The mask is always 5 characters long, irrespective of the length of the userinfo (username/password) fields