npm-emoji-flags
v1.0.0
Published
Emoji flags using NPM
Downloads
2
Readme
emoji-flags
Get country languages from country flag emojis
Install
npm install emoji-flags
Usage
const { isValidCode, isValidEmoji, getLanguagesFromCode, getLanguagesFromEmoji } = require("country-emoji-languages");
isValidCode("IN"); // true
isValidEmoji("🇮🇳"); // true
getLanguagesFromCode("IN"); // ['bn', 'en', 'gu', 'hi', 'pa', 'ta', 'te']
getLanguagesFromEmoji("🇮🇳"); // ['bn', 'en', 'gu', 'hi', 'pa', 'ta', 'te']
To Do's
- Return language names along with codes