Skip to content

twlite/fetch-country-flag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fetch Country Flag

Simple package to fetch flag of any country by name.

Features

  • Easy
  • Simple
  • Fast
  • TypeScript Support

Example

const flag = require("fetch-country-flag");

const data = await flag("usa", {
    type: "png",
    theme: "flat",
    size: "64"
});

console.table(data);

/*
Expected Output:
┌─────────┬──────────────────────────────────────────────┐
│ (index) │                    Values                    │
├─────────┼──────────────────────────────────────────────┤
│  name   │          'United States of America'          │
│  flag   │ 'https://www.countryflags.io/US/flat/64.png' │
└─────────┴──────────────────────────────────────────────┘
*/

Join My Discord

https://discord.gg/2SUybzb

About

Simple package to fetch flag of any country by name.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published