paricafe/src/server/api/common/get-host-lower.ts
2018-06-18 09:54:53 +09:00

5 lines
116 B
TypeScript

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