1.8.1 • Published 6 months ago

ember-world-flags v1.8.1

Weekly downloads
1,021
License
MIT
Repository
github
Last release
6 months ago

Ember-World-Flags

npm version Ember Observer Score

This addon provides a world-flag component that can display any country's flag in any arbitrary size.

Compatibility

  • Ember.js v4.4 or above
  • Ember CLI v4.4 or above
  • Node.js v14 or above

Installation

ember install ember-world-flags

Example Usage

{{world-flag-svg "ca"}}
{{world-flag-svg "ca" 32}}
{{world-flag-svg "ca" 50}}

in the examples above, "ca" is the ISO 3166-1 alpha-2 code and the 2nd argument is the size of the flag, in pixels. eg 50 means a flag the flag will be 50 pixels by 50 pixels.

There is also the original legacy helper that provides flags from a png file in only two sizes: 16x16 or 32x32

{{world-flag "ca"}}
{{world-flag "ca" 16}}
{{world-flag "ca" 32}}

Check out the demo on github pages.

Contributing

  • git clone this repository
  • yarn install

Running

Running Tests

  • ember test
  • ember test --server

License

This project is licensed under the MIT License.

1.8.1

6 months ago

1.8.0

1 year ago

1.7.0

1 year ago

1.6.0

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.2.0

2 years ago

1.3.0

2 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

7 years ago

0.2.7

7 years ago

0.2.6

8 years ago

0.2.5

8 years ago

0.2.4

9 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.3

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.0

9 years ago