1
- ## URL
1
+ # URL
2
2
3
3
This module has utilities for URL resolution and parsing.
4
4
Call ` require('url') ` to use it.
@@ -45,7 +45,7 @@ string will not be in the parsed object. Examples are shown for the URL
45
45
46
46
The following methods are provided by the URL module:
47
47
48
- ### url.parse(urlStr, [ parseQueryString] , [ slashesDenoteHost] )
48
+ ## url.parse(urlStr, [ parseQueryString] , [ slashesDenoteHost] )
49
49
50
50
Take a URL string, and return an object.
51
51
@@ -57,7 +57,7 @@ Pass `true` as the third argument to treat `//foo/bar` as
57
57
` { host: 'foo', pathname: '/bar' } ` rather than
58
58
` { pathname: '//foo/bar' } ` . Defaults to ` false ` .
59
59
60
- ### url.format(urlObj)
60
+ ## url.format(urlObj)
61
61
62
62
Take a parsed URL object, and return a formatted URL string.
63
63
@@ -75,6 +75,6 @@ Take a parsed URL object, and return a formatted URL string.
75
75
* ` search ` is treated the same with or without the leading ` ? ` (question mark)
76
76
* ` hash ` is treated the same with or without the leading ` # ` (pound sign, anchor)
77
77
78
- ### url.resolve(from, to)
78
+ ## url.resolve(from, to)
79
79
80
80
Take a base URL, and a href URL, and resolve them as a browser would for an anchor tag.
0 commit comments