sparkast/lib/url/updateTLD.ts
2024-09-21 21:31:08 +08:00

4 lines
171 B
TypeScript

const response = await fetch("https://data.iana.org/TLD/tlds-alpha-by-domain.txt");
const tldText = await response.text();
await Bun.write("./lib/url/tlds.txt", tldText);