6 lines
116 B
TypeScript
6 lines
116 B
TypeScript
import { toUnicode } from 'punycode';
|
|
|
|
export default (host: string) => {
|
|
return toUnicode(host).toLowerCase();
|
|
};
|