Skip to content

Latest commit

 

History

History
 
 

URL

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

URL

What is node-url ?

  • Url module is one of the core modules that comes with node.js, which is used to parse the URL and its other properties. 

install

  • We can install URL from terminal using the command npm install url or,
  • We can install URL from npm

Feature of URL

  • href : Provides us the complete url string
  • host : Gives us host name and port number
  • hostname : Hostname in the url
  • path : Gives us path name in the url
  • pathanme : Provides host name, port name and pathanme
  • port : Gives us port number specified in url
  • auth : Authorization part of url
  • protocol : Protocol used for the request
  • search : Returns query string attached with url