node-url-extract-auth
Example
var extractAuth = ;;//"https://npmjs.com"
Installation
npm i url-extract-auth
API Reference
string
⏏
extractAuth(url, [authObject]) ⇒ Extract auth string from URL. If provided, sets values to auth object.
Kind: Exported function
Params
- url
string
- [authObject]
Object
Example
var authObject = {};;//"ftp://192.168.1.5/files"authObject//{ username: "user221", password: "deletethis" }
License
MPL 2.0