country-code-to-flag-emoji

v1.3.3
A function that returns a flag emoji given IETF language tag.
emoji

build

yarn build-esm && yarn build-cjs && yarn build-cjs-package

build-esm

tsc --project tsconfig.build.json --outDir dist/esm

build-cjs

tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs --moduleResolution node --verbatimModuleSyntax false

build-cjs-package

echo '{ "type": "commonjs" }' > dist/cjs/package.json

clean

rimraf dist

format

prettier --check . --cache

lint

eslint .

prepack

yarn clean && yarn build

test

yarn lint && yarn tsc && yarn format && yarn unit

tsc

tsc

unit

vitest
npm i country-code-to-flag-emoji

Metadata

  • MIT
  • Whatever
  • Wojciech Maj
  • released 4/15/2024

Downloads

Maintainers