Skip to content

Commit

Permalink
doc,url: clarify domainTo* when built without ICU
Browse files Browse the repository at this point in the history
Continuation of: #35099

Signed-off-by: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
RaisinTen committed May 25, 2021
1 parent 7afa7b9 commit 17b38d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/api/url.md
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,9 @@ invalid domain, the empty string is returned.

It performs the inverse operation to [`url.domainToUnicode()`][].

This feature is only available if the `node` executable was compiled with
[ICU][] enabled. If not, the domain names are passed through unchanged.

```mjs
import url from 'url';

Expand Down Expand Up @@ -979,6 +982,9 @@ domain, the empty string is returned.

It performs the inverse operation to [`url.domainToASCII()`][].

This feature is only available if the `node` executable was compiled with
[ICU][] enabled. If not, the domain names are passed through unchanged.

```mjs
import url from 'url';

Expand Down

0 comments on commit 17b38d7

Please sign in to comment.