Sharkey/src/server/api/common/get-host-lower.ts

6 lines
116 B
TypeScript
Raw Normal View History

2018-03-27 10:51:12 +03:00
import { toUnicode } from 'punycode';
2018-06-18 03:54:53 +03:00
export default (host: string) => {
return toUnicode(host).toLowerCase();
2018-03-27 10:51:12 +03:00
};