talkjs/country-flag-emoji-polyfill ? reverse-engineered prompt
Reverse engineered prompt
Build me a tiny TypeScript library that fixes country flag emojis in Chromium based browsers on Windows.
I want it to detect when the browser can show normal color emojis but not actual flag emojis, then automatically inject a font into the page so flags like 🇨🇭 and 🇯🇵 render properly instead of weird letter pairs. The font should only apply to country flags, not change the rest of the text, and it should not load at all when the browser already supports flags natively.
Make it easy to use with one function call from npm or a script tag, and include a simple example page that shows it working. Keep it very small, with no dependencies if possible, and use a webfont for the flags. If you need current details about browser support or font loading, look them up online.
Are you gonna build this?
make sure you review the code using coderabbit