misskey/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();
};