Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1758f02

Browse filesBrowse files
benglMyles Borins
authored andcommitted
doc: add added: information for url
Module introduced in 7ff04c1. Ref: #6578 PR-URL: #6593 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 3c8f19f commit 1758f02
Copy full SHA for 1758f02

File tree

Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/url.md‎

Copy file name to clipboardExpand all lines: doc/api/url.md
+9Lines changed: 9 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ properties of URL objects:
8080
The following methods are provided by the URL module:
8181

8282
## url.format(urlObj)
83+
<!-- YAML
84+
added: v0.1.25
85+
-->
8386

8487
Take a parsed URL object, and return a formatted URL string.
8588

@@ -106,6 +109,9 @@ Here's how the formatting process works:
106109
* `hash` is treated the same with or without the leading `#` (pound sign, anchor).
107110

108111
## url.parse(urlStr[, parseQueryString][, slashesDenoteHost])
112+
<!-- YAML
113+
added: v0.1.25
114+
-->
109115

110116
Take a URL string, and return an object.
111117

@@ -120,6 +126,9 @@ Pass `true` as the third argument to treat `//foo/bar` as
120126
`{ pathname: '//foo/bar' }`. Defaults to `false`.
121127

122128
## url.resolve(from, to)
129+
<!-- YAML
130+
added: v0.1.25
131+
-->
123132

124133
Take a base URL, and a href URL, and resolve them as a browser would for
125134
an anchor tag. Examples:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.