JSPM

get-emoji-by-language-code

1.0.8
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 39
  • Score
    100M100P100Q56058F
  • License ISC

Get the appropriate emoji by language code

Package Exports

  • get-emoji-by-language-code
  • get-emoji-by-language-code/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (get-emoji-by-language-code) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Get Emoji By Language Code

Language Emoji Lookup is a simple npm package that allows you to easily retrieve emojis associated with language codes. It provides a straightforward JavaScript function for this purpose.

Installation

You can install the package via npm or yarn:

npm install get-emoji-by-language-code

or

yarn add get-emoji-by-language-code

Usage

To use this package, follow these steps:

  1. Import the getEmojiByLanguageCode function from the package:
import getEmojiByLanguageCode from "get-emoji-by-language-code";
  1. Call the function with a language code to get the associated emoji:
const languageCode = "sv"; // Replace 'sv' with the desired language code
const emoji = getEmojiByLanguageCode(languageCode); // Returns πŸ‡ΈπŸ‡ͺ
console.log(`Emoji for language code "${languageCode}": ${emoji}`);

If the language code is found in the package's dataset, the corresponding emoji will be returned. If the language code is not found, a sad face emoji "😞" will be returned as a fallback.

License

This package is licensed under the MIT License.