# round-flags

> Round country flags

Latest version **1.0.2** (published 2021-01-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install round-flags
pnpm add round-flags
yarn add round-flags
bun add round-flags
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-01-02 |
| First published | 2020-05-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 207.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Taras Kulchytskyi |
| Maintainers | tarkeasy |
| Keywords | flags, round-flags, country-flags |

## Links

- npm: https://www.npmjs.com/package/round-flags
- Repository: https://github.com/Tarkeasy/round-flags
- Homepage: https://github.com/Tarkeasy/round-flags#readme
- Issues: https://github.com/Tarkeasy/round-flags/issues
- npm.io page: https://npm.io/package/round-flags

## Recent versions

- 1.0.2 (latest) — 2021-01-02
- 1.0.1 — 2020-11-05
- 1.0.0 — 2020-06-16
- 0.0.7 — 2020-06-14
- 0.0.6 — 2020-06-12
- 0.0.5 — 2020-06-12
- 0.0.4 — 2020-05-06
- 0.0.3 — 2020-05-03
- 0.0.2 — 2020-05-03
- 0.0.1 — 2020-05-03

## README

# round-flags

## round-flags - provides a round-shaped collection of svg format flags, you can use it with any library or framework you work with.
### Collection of over 200 flags

## Example with react
```
import React from 'react;
import { GB } from 'round-flags';

function Example () {
  return <img src={GB} />
}
```
<img src="https://image.flaticon.com/icons/svg/197/197374.svg" width="100" height="100" />

### Also you can import a flag by providing data.
```
import React from 'react;
import PropTypes from 'prop-types';
import * as images from 'round-flags';

function Example (props) {
  // props just a string 'UA'
  return <img src={images[props.UA]} />
}

Example.propTypes = {
  UA: PropTypes.string,
};
```
<img src="https://image.flaticon.com/icons/svg/197/197572.svg" width="100" height="100" />

### You can import a flag only providing ALPHA-2 code of country.

### Example
```
import { US } from 'round-flags'; /// Flag of United States
import { ES } from 'round-flags'; /// Flag of Spain

```

---
_Source: https://npm.io/package/round-flags · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
