Skip to content

Commit

Permalink
doc: add added: information for url
Browse files Browse the repository at this point in the history
Module introduced in 7ff04c1.

Ref: nodejs#6578
  • Loading branch information
bengl committed May 5, 2016
1 parent ae4ebbc commit 876d11e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/api/url.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ properties of URL objects:
The following methods are provided by the URL module:

## url.format(urlObj)
<!-- YAML
added: v0.1.25
-->

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

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

## url.parse(urlStr[, parseQueryString][, slashesDenoteHost])
<!-- YAML
added: v0.1.25
-->

Take a URL string, and return an object.

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

## url.resolve(from, to)
<!-- YAML
added: v0.1.25
-->

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

0 comments on commit 876d11e

Please sign in to comment.