File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -913,6 +913,9 @@ invalid domain, the empty string is returned.
913913
914914It performs the inverse operation to [ ` url.domainToUnicode() ` ] [ ] .
915915
916+ This feature is only available if the ` node ` executable was compiled with
917+ [ ICU] [ ] enabled. If not, the domain names are passed through unchanged.
918+
916919``` js
917920const url = require (' url' );
918921console .log (url .domainToASCII (' español.com' ));
@@ -938,6 +941,9 @@ domain, the empty string is returned.
938941
939942It performs the inverse operation to [ ` url.domainToASCII() ` ] [ ] .
940943
944+ This feature is only available if the ` node ` executable was compiled with
945+ [ ICU] [ ] enabled. If not, the domain names are passed through unchanged.
946+
941947``` js
942948const url = require (' url' );
943949console .log (url .domainToUnicode (' xn--espaol-zwa.com' ));
You can’t perform that action at this time.
0 commit comments