Compare commits

...

2 Commits

Author SHA1 Message Date
Sven Slootweg 9c8f8501b6 1.0.2 5 years ago
Sven Slootweg e80f024efe Clarify documentation 5 years ago

@ -60,6 +60,8 @@ console.log(modified4); // http://example.com:8080/path
Generates a modified URL. Returns the modified URL as a string. Keep in mind that the `query` object is *not* merged by default; see the `mergeQuery` option below to change that.
This function does __not__ change the `baseUrl` string or the `newProperties` object you pass in; it creates and returns a new URL string entirely.
- __baseUrl:__ The URL that you want to modify, as a string.
- __newProperties:__ The properties of the URL that you want to change, following the naming conventions of the [legacy URL object](https://nodejs.org/api/url.html#url_legacy_url_api). Like in that API, `query` takes precedence over `search`, and `hostname`/`port` take precedence over `host`. All keys are optional.
- __options:__ *(Optional.)* An object of extra options.

@ -1,6 +1,6 @@
{
"name": "modify-url",
"version": "1.0.1",
"version": "1.0.2",
"main": "index.js",
"repository": "http://git.cryto.net/joepie91/node-modify-url.git",
"author": "Sven Slootweg <admin@cryto.net>",

Loading…
Cancel
Save