pathname is the path section of the URL, that comes after the host and before the query, including the initial slash if present.
For example:
url.parse('http://stackoverflow.com/questions/17184791').pathname
will give you:
"/questions/17184791"