url-auth-redactor

1.0.2 • Public • Published

node-url-auth-redactor

Redacts the auth:password part of url strings

Usage

const redactor = require('url-auth-redactor')
const url = 'https://user:password@example.com'

const redactedUrl = redactor(url)
// 'https://user:****@example.com'

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i url-auth-redactor

      Weekly Downloads

      166

      Version

      1.0.2

      License

      MIT

      Last publish

      Collaborators

      • sandfox