@@ -9,16 +9,17 @@ const protocols = require("protocols")
9
9
* @param {String } url The input url.
10
10
* @return {Object } An object containing the following fields:
11
11
*
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.
22
23
*/
23
24
function parsePath ( url ) {
24
25
0 commit comments