Welcome aboard! We are happy you are here and wish you good net-raft!
const { URL } = require('url');
const myURL = new URL('https://net-raft.com:81/foo');
console.log(myURL.hostname);
// Prints net-raft.com
const { URL } = require('url');
const myURL = new URL('https://net-raft.com/abcd/xyz?123');
console.log(myURL.pathname);
// Prints /abcd/xyz
The most helpful NODEJS solutions
get user ipNODEJS Click to see more ... 7.6K 1.7K