I am struggling with this one.. I want to get the path between hostname and filename:
http://host.com/this/is/what/i/want/file.jpg
Method should return “this/is/what/i/want”.
I was looking at the URL module but can’t find the right property.
url.parse(host).pathname
returns the whole path but with the filename :(.
Thanks in advance,
You can do substring with the full pathname info you have