https://github.com/khui0/flaggle-flag-generator
Generate flag images with a common aspect ratio
https://github.com/khui0/flaggle-flag-generator
flags sharp typescript
Last synced: about 1 year ago
JSON representation
Generate flag images with a common aspect ratio
- Host: GitHub
- URL: https://github.com/khui0/flaggle-flag-generator
- Owner: khui0
- License: mit
- Created: 2024-06-05T16:13:19.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-16T15:58:08.000Z (almost 2 years ago)
- Last Synced: 2025-06-23T05:05:44.900Z (about 1 year ago)
- Topics: flags, sharp, typescript
- Language: TypeScript
- Homepage:
- Size: 1.25 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flaggle-flag-generator
Generate images of country flags with a common aspect ratio to use in Flaggle
## Usage
First, install dependencies. This will also fetch `codes.json` from [flagpedia.net](https://flagpedia.net/) using cURL.
```bash
npm i
```
Then, create images using
```bash
npm run start
```
Generates 360x240 PNG images by default (3:2 or 1.5 aspect ratio). This can be changed by editing `src/index.ts`