1.0.0 • Published 4 years ago

fetch-country-flag v1.0.0

Weekly downloads
19
License
MIT
Repository
github
Last release
4 years ago

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