Skip to content

Tag Archives: Node-URL

The url.host is an inbuilt application programming interface of class URL with in url module. It returns the Punycode ASCII serialization of the domain. If… Read More
The url.domainToUnicode is an inbuilt application programming interface of class URL with in url module. It returns the Unicode serialization of the domain. If the… Read More
The urlObject.port() method in Node is used to get the numeric port portion of the host component within the hostname. The URL’s port number is… Read More
The url.resolve(from, to) is inbuilt method of class URL that resolves a target URL relative to a base URL. Syntax: url.resolve(from, to); Where, from: (type:String)… Read More
The utilities for URL resolution and parsing is provided by the URL module. A URL string is a structured string that contains various multiple meaningful… Read More
The URL.format(urlObject) is the inbuilt API provided by URL class, which takes an object or string and return a formatted string derived from that object… Read More
With the help of url.format()method, we are able to format the hostname according to our need. We have different types of other parameters which we… Read More
The urlObject.search() method in Node is used to get the search query within the hostname which is followed by the ‘?’ character. Syntax : urlObject.search()… Read More
With the help of urlObject.protocol() method, we can find the name of protocol which is used by the given hostname. Syntax : urlObject.protocol() Return :… Read More
With the help of urlObject.auth() method, we can find the authentication parameter within the hostname. This method return the string of parameters.  Syntax : urlObject.auth() Return… Read More
url.origin is an inbuilt application programming interface(API) of the URL class within the url module. url.origin API is used to gets the read-only serialization of the… Read More
URL.username is an inbuilt application programming interface(API) of the URL class within the Node.JS. URL.username API is used to get and set the username of URL.  … Read More
URL.search is an inbuilt application programming interface(API) of the URL class within the Node.JS. URL.search API is used to get and set the query part of… Read More
The url.port is an inbuilt application programming interface of class URL within url module which is used to get and set the port portion of… Read More
The url.pathname is an inbuilt application programming interface of class URL with in url module which is used to get and set the pathname portion… Read More