Skip to content

Commit 639837a

Browse files
tflanaganrvagg
authored andcommitted
doc: sort url alphabetically
Reorders, with no contextual changes, the url documentation alphabetically. PR-URL: #3662 Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
1 parent 47de95c commit 639837a

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

doc/api/url.markdown

+14-14
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,6 @@ properties of URL objects:
7777

7878
The following methods are provided by the URL module:
7979

80-
## url.parse(urlStr[, parseQueryString][, slashesDenoteHost])
81-
82-
Take a URL string, and return an object.
83-
84-
Pass `true` as the second argument to also parse the query string using the
85-
`querystring` module. If `true` then the `query` property will always be
86-
assigned an object, and the `search` property will always be a (possibly
87-
empty) string. If `false` then the `query` property will not be parsed or
88-
decoded. Defaults to `false`.
89-
90-
Pass `true` as the third argument to treat `//foo/bar` as
91-
`{ host: 'foo', pathname: '/bar' }` rather than
92-
`{ pathname: '//foo/bar' }`. Defaults to `false`.
93-
9480
## url.format(urlObj)
9581

9682
Take a parsed URL object, and return a formatted URL string.
@@ -117,6 +103,20 @@ Here's how the formatting process works:
117103
* It is treated the same with or without the leading `?` (question mark).
118104
* `hash` is treated the same with or without the leading `#` (pound sign, anchor).
119105

106+
## url.parse(urlStr[, parseQueryString][, slashesDenoteHost])
107+
108+
Take a URL string, and return an object.
109+
110+
Pass `true` as the second argument to also parse the query string using the
111+
`querystring` module. If `true` then the `query` property will always be
112+
assigned an object, and the `search` property will always be a (possibly
113+
empty) string. If `false` then the `query` property will not be parsed or
114+
decoded. Defaults to `false`.
115+
116+
Pass `true` as the third argument to treat `//foo/bar` as
117+
`{ host: 'foo', pathname: '/bar' }` rather than
118+
`{ pathname: '//foo/bar' }`. Defaults to `false`.
119+
120120
## url.resolve(from, to)
121121

122122
Take a base URL, and a href URL, and resolve them as a browser would for

0 commit comments

Comments
 (0)