Skip to content

Commit dd2141a

Browse files
committed
Docs
1 parent 624c19e commit dd2141a

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

lib/index.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@ const protocols = require("protocols")
99
* @param {String} url The input url.
1010
* @return {Object} An object containing the following fields:
1111
*
12-
* - `protocols` (Array): An array with the url protocols (usually it has one element).
13-
* - `protocol` (String): The first protocol, `"ssh"` (if the url is a ssh url) or `"file"`.
14-
* - `port` (null|Number): The domain port.
15-
* - `resource` (String): The url domain (including subdomains).
16-
* - `user` (String): The authentication user (usually for ssh urls).
17-
* - `pathname` (String): The url pathname.
18-
* - `hash` (String): The url hash.
19-
* - `search` (String): The url querystring value.
20-
* - `href` (String): The input url.
21-
* - `query` (Object): The url querystring, parsed as object.
12+
* - `protocols` (Array): An array with the url protocols (usually it has one element).
13+
* - `protocol` (String): The first protocol or `"file"`.
14+
* - `port` (null|Number): The domain port.
15+
* - `resource` (String): The url domain (including subdomain and port).
16+
* - `user` (String): The authentication user (default: `""`).
17+
* - `password` (String): The authentication password (default: `""`).
18+
* - `pathname` (String): The url pathname.
19+
* - `hash` (String): The url hash.
20+
* - `search` (String): The url querystring value (excluding `?`).
21+
* - `href` (String): The normalized input url.
22+
* - `query` (Object): The url querystring, parsed as object.
2223
*/
2324
function parsePath(url) {
2425

0 commit comments

Comments
 (0)