Newbee question: parse and change an URL string

8 views
Skip to first unread message

Christophe HOARAU

unread,
Apr 26, 2016, 11:04:26 AM4/26/16
to nodejs
Hi,

I wanted to use Url (https://nodejs.org/api/url.html) in order to parse a string url and then be able to change/add some query parameters. But when I try to change my URL object with url.query.myParam = "maValue" and then when I'm using Url.format I don't have my new parameter.
I have seen several properties on the URL object which contains redundant information. What is the one I have to update for my needs ?

Thanks a lot.
Best regards.
Reply all
Reply to author
Forward
0 new messages