locale2emoji
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

locale2emoji

Convert a locale id string (LCID) to a unicode regional indicator symbol.

Installation

$ npm install locale2emoji

Usage

import { getFlagEmoji } from 'locale2emoji';

getFlagEmoji('en-CA'); // 🇨🇦
getFlagEmoji('en_CA'); // 🇨🇦
getFlagEmoji('en'); // 🇺🇸

Package Sidebar

Install

npm i locale2emoji

Weekly Downloads

4

Version

1.1.1

License

none

Unpacked Size

21.3 kB

Total Files

6

Last publish

Collaborators

  • kvintus