# anyaround — names & flags > Turns a region, language, script, currency or calendar code into its localized name — "US" → "United States", "Соединенные Штаты" — with the flag emoji when it is a country. - wraps: Intl.DisplayNames - install: npm install anyaround - size: 0.8 kB gzip, zero dependencies, ESM + CJS, TypeScript types included - runtime: Node 18+, every modern browser, Deno, Bun, edge runtimes. - docs: https://anyfamily.site/docs/anyaround - demo: https://anyfamily.site/anyaround - playground: https://stackblitz.com/github/kirilinsky/anyfamily/tree/main/examples/vanilla?file=src/main.ts - npm: https://www.npmjs.com/package/anyaround - source: https://github.com/kirilinsky/anyfamily/tree/main/packages/anyaround - family: https://anyfamily.site/llms.txt ## why Country and language name tables are hundreds of kilobytes and go stale; the runtime already has every name in 200+ locales. anyaround adds what Intl lacks — flags from Regional Indicator Symbols, detection of what kind of code it was given, a clear miss signal — in ~0.9 kB. ## usage ```ts anyaround("US") // "United States" anyaround("US", { display: "flag-name" }) // "🇺🇸 United States" anyaround("de", { locale: "fr" }) // "allemand" anyaround("EUR") // "Euro" anyaround("Cyrl") // "Cyrillic" anyaround.info("QZ", { mode: "region" }) // { code: "QZ", type: "region", name: "QZ", flag: "🇶🇿", found: false } ``` ## not for Listing every country (Intl cannot enumerate them — bring your own code list), cities and subdivisions, or looking a code up from its name. --- # anyaround Micro locale display built on native Intl. Turn "US" into "🇺🇸 United States", "en" into "English", "Cyrl" into "Cyrillic", "EUR" into "Euro". ▸ live demo · ▸ full docs · ▸ any family --- **One export. Smart detection. Country flags. Any locale. Zero dependencies.** `Intl.DisplayNames` already knows the name of every country, language, script, currency and calendar — in 200+ locales. anyaround makes it a one-liner and adds the one thing `Intl` leaves out: **flags**. No data files, no hardcoded flag maps, no config. ```ts import { anyaround } from "anyaround"; anyaround("US"); // "United States" — smart mode (default) anyaround("US", { display: "flag-name" }); // "🇺🇸 United States" anyaround("US", { locale: "ru" }); // "Соединенные Штаты" anyaround("en"); // "English" anyaround("Cyrl"); // "Cyrillic" anyaround("EUR"); // "Euro" ``` --- ## install ```bash npm install anyaround ``` --- ## usage ```ts anyaround(code); anyaround(code, options); ``` `code` is a region, language, script, currency or calendar code. In the default `smart` mode the kind is inferred from its shape. `anyaround.info()` takes the same arguments and returns the structured record instead of a ready string — build your own output, or drive a `