rendered-country-flags
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

rendered-country-flags

Rendered flag emojis for all countries

Introduction

This module provides a rendered and base64-encoded version of all the emoji flags present in google's Noto Color Emoji font.

Usage

const icons = require('rendered-country-flags');
 
console.log(icons["US"]);
// -> "data:image/png;base64,iVBORw0KGgoAAAANSUhE..."

Development

# Generate files
bash generate.sh

If you'd like to generate the flags from source, clone googlefonts/noto-emoji, patch the Makefile in there using Makefile.patch and just build the project using the instructions provided in the README.

License

All the icons used in this package come from the noto emoji font, which is licensed under SIL Open Font License, version 1.1. More concretely, the flag emojis are generated by applying a transform to a set of flag images obtained from either wikipedia (CC BY-SA license) or created by google and exempt of copyright.

Package Sidebar

Install

npm i rendered-country-flags

Weekly Downloads

174

Version

1.2.1

License

MIT

Unpacked Size

1.13 MB

Total Files

4

Last publish

Collaborators

  • corollari
  • 0xsalah