Skip to content

MJdiop/country-flag-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

country-flag-code

A package that transforms a country code into a flag

Install country-flag-code:

npm i country-flag-code

# or

yarn add country-flag-code

Usage:

import { countryCode } from 'country-flag-code';

function MyComponent() {
  const flag = countryCode('sn');

  return (
    <>
      Country {flag} => '🇸🇳'
    </>
  );
}

About

A package that transforms a country code into a flag

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published