blurring password in url
npm i blurl
const blurl = require('blurl');
blurl('http://user:password@www.site.ru')
// returns 'http://user:********@www.site.ru'
blurl('http://user:password@www.site.ru', {blurPassword: false})
// returns 'http://user:password@www.site.ru'
blurl('http://user:password@www.site.ru', {blurPassword: [1, 2]})
// returns 'http://user:p*****rd@www.site.ru'
MIT