File tree 1 file changed +6
-0
lines changed
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.
913
913
914
914
It performs the inverse operation to [ ` url.domainToUnicode() ` ] [ ] .
915
915
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
+
916
919
``` js
917
920
const url = require (' url' );
918
921
console .log (url .domainToASCII (' español.com' ));
@@ -938,6 +941,9 @@ domain, the empty string is returned.
938
941
939
942
It performs the inverse operation to [ ` url.domainToASCII() ` ] [ ] .
940
943
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
+
941
947
``` js
942
948
const url = require (' url' );
943
949
console .log (url .domainToUnicode (' xn--espaol-zwa.com' ));
You can’t perform that action at this time.
0 commit comments