npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

euro-flags

v1.0.1

Published

Print the flags of 28 European countries to the console!

Downloads

8

Readme

euro-flags

Print the flags of 28 European countries to the console using unicode box characters and ANSI-256 colors!

What euro-flags prints to the console

Usage

Via npx:

Print all flags:

$ npx euro-flags

Print specific flags:

$ npx euro-flags <country-name>
$ npx euro-flags <country-name> --border
$ npx euro-flags <country-name> --scale=<scale-number>
$ npx euro-flags <country-name> --scale=full

Via Global Install

$ npm install --global euro-flags

then:

$ euro-flags
$ euro-flags <country-name>
$ euro-flags <country-name> --border
$ euro-flags <country-name> --scale=<scale-number>
$ euro-flags <country-name> --scale=full

Via Import

$ npm install euro_flags

then:

const euro_flags = require('euro-flags');
console.log(euro_flags['<country-name>'].create(<scale-number>, <border-boolean>));

Options

Standard Flag

$ euro-flags <country-name>

What euro-flags prints to the console

Add a Border

To add a border, add the --border flag:

$ euro-flags <country-name> --border

What euro-flags prints to the console

Make it Bigger

To increase the scale, add the --scale=<positive-number> flag. The value can be any integer greater than or equal to 1. (Default scale is 1). Can also use --scale=full to fit the flag to the closest terminal dimensions.

$ euro-flags <country-name> --scale=<positive-number>

What euro-flags prints to the console

Note: Each flag has its own minimum dimensions (see below), and scale just multiplies those dimensions. Therefore, the same scale will render different sizes for flags which have different minimum dimensions.

Supported Countries (28)

Due to limitations of ASCII art, only flags that can be drawn using block characters are included.

Armenia

$ euro-flags Armenia

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | ------------ |-------------- | ------ | | 3 rows x 12 columns | (1:2) | 3 | Link |

Austria

$ euro-flags Austria

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | ------------ |-------------- | ------ | | 3 rows x 9 columns | (2:3) | 3 | Link |

Belgium

$ euro-flags Belgium

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | ------------ |-------------- | ------ | | 1 row x 3 columns | (2:3) | 10 | Link |

Bulgaria

$ euro-flags Bulgaria

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | ------------ |-------------- | ------ | | 3 rows x 10 columns | (3:5) | 3 | Link |

Denmark

$ euro-flags Denmark

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 7 rows x 19 columns | (28:37) | 2 | Link |

England

$ euro-flags England

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 5 rows x 16 columns | (3:5) | 2 | Link |

Estonia

$ euro-flags Estonia

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 3 rows x 9 columns | (7:11) | 3 | Link |

Finland

$ euro-flags Finland

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 11 rows x 36 columns | (11:18) | 1 | Link |

France

$ euro-flags France

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 1 row x 3 columns | (2:3) | 10 | Link |

Georgia

$ euro-flags Georgia

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 12 rows x 36 columns | (2:3) | 1 | Link |

Germany

$ euro-flags Germany

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 3 rows x 10 columns | (3:5) | 3 | Link |

Greece

$ euro-flags Greece

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 9 rows x 27 columns | (2:3) | 1 | Link |

Hungary

$ euro-flags Hungary

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 3 rows x 12 columns | (1:2) | 3 | Link |

Iceland

$ euro-flags Iceland

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 18 rows x 50 columns | (18:25) | 1 | Link |

Ireland

$ euro-flags Ireland

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 3 rows x 12 columns | (1:2) | 3 | Link |

Italy

$ euro-flags Italy

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 1 rows x 3 columns | (2:3) | 10 | Link |

Latvia

$ euro-flags Latvia

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 5 rows x 20 columns | (1:2) | 2 | Link |

Lithuania

$ euro-flags Lithuania

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 3 rows x 10 columns | (3:5) | 3 | Link |

Luxembourg

$ euro-flags Luxembourg

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 3 rows x 10 columns | (3:5) | 3 | Link |

Monaco

$ euro-flags Monaco

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 2 rows x 5 columns | (4:5) | 5 | Link |

Netherlands

$ euro-flags Netherlands

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 3 rows x 9 columns | (2:3) | 3 | Link |

Norway

$ euro-flags Norway

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 16 rows x 44 columns | (8:11) | 1 | Link |

Poland

$ euro-flags Poland

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 10 rows x 32 columns | (5:8) | 1 | Link |

Romania

$ euro-flags Romania

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 1 row x 3 columns | (2:3) | 10 | Link |

Russia

$ euro-flags Russia

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 3 rows x 9 columns | (2:3) | 3 | Link |

Sweden

$ euro-flags Sweden

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 5 rows x 16 columns | (5:8) | 2 | Link |

Switzerland

$ euro-flags Switzerland

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 5 rows x 10 columns | (1:1) | 2 | Link |

Ukraine

$ euro-flags Ukraine

What euro-flags prints to the console

| Minimum Dimensions | Target Ratio | Default Scale | Source | | -------------------- | -------------- |-------------- | ------ | | 2 rows x 6 columns | (2:3) | 5 | Link |

Notes
  • Minimum Dimensions - The smallest possible dimensions used to render the flag (when --scale=1).
  • Target Ratio - The preferred ratio to use when rendering the flag. Most flags match the target ratio exactly. Some flags are within 1-2 columns of the target ratio, in an attempt to support smaller renderings. Also assume 1 row height equals 2 column widths.
  • Default Scale - The scale used to render the flag when the --scale flag is not included.

Related

  • greek-flag - Print the Greek flag to the console!
  • usa-flag - Print the flag of the United States of America to the console!