Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/twlite/fetch-country-flag

Simple package to fetch flag of any country by name.
https://github.com/twlite/fetch-country-flag

Last synced: about 1 month ago
JSON representation

Simple package to fetch flag of any country by name.

Awesome Lists containing this project

README

        

# Fetch Country Flag
Simple package to fetch flag of any country by name.

# Features
- Easy
- Simple
- Fast
- TypeScript Support

# Example

```js
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](https://discord.gg/2SUybzb)**