0.1.0 • Published 4 months ago

@turnit/emoji-flags v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@turnit/emoji-flags

Returns the emoji flags associated with an country code ISO_3166-1_alpha-2.

Returns the emoji flag

import { findByCountryCode } from '@turnit/emoji-flags';

import type { EmojiFlag } from '@turnit/emoji-flags';

const countryFlag: EmojiFlag = findByCountryCode('GB');
//  {
//    alpha2: 'GB',
//    emoji: '🇬🇧',
//    unicode: 'U+1F1EC U+1F1E7',
//    country_name: 'United Kingdom',
//    description: 'flag for United Kingdom',
//    dialCode: '+44'
//  }

Resources

Licensing

Licensed under the MIT License

A copy of the license is available in the repository's LICENSE file.