Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/twlite/fetch-country-flag
- Owner: twlite
- License: mit
- Created: 2020-08-01T10:50:35.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-19T19:09:28.000Z (almost 2 years ago)
- Last Synced: 2024-10-05T00:35:14.981Z (about 1 month ago)
- Language: TypeScript
- Homepage: https://npmjs.com/package/fetch-country-flag
- Size: 2.93 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)**