1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2025-01-04 17:03:11 +09:00
cherrypick/src/server/api/common/get-host-lower.ts
2018-06-18 09:54:53 +09:00

6 lines
116 B
TypeScript

import { toUnicode } from 'punycode';
export default (host: string) => {
return toUnicode(host).toLowerCase();
};