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