yumechi-no-kuni/src/server/api/common/get-host-lower.ts

6 lines
106 B
TypeScript
Raw Normal View History

2018-03-27 02:51:12 -05:00
import { toUnicode } from 'punycode';
export default host => {
return toUnicode(host).toLowerCase();
2018-03-27 02:51:12 -05:00
};