Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. const url = require('url');
  2. const myUrl = new url.URL('http://username:password@server.com/some/path')
  3. const username = myUrl.username;
  4. const password = myUrl.password;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement