Skip to content
This repository was archived by the owner on Nov 10, 2023. It is now read-only.
This repository was archived by the owner on Nov 10, 2023. It is now read-only.

Publish the "country code -> flag emoji" helper as a separate library #4

Open

Description

@jviide

Publish the "country code -> flag emoji" helper as a separate library, currently located at lib/country-flag.js.

Double-check that npm doesn't already have a replacement with a suitably small code side. If there is one, then use it instead.

Activity

  1. oherrala commented on Oct 28, 2016

    @oherrala
    Member

    Quick search yielded two potential libraries:

    I like the emoji-flag package. It's minimalistic. emoji-flags has ~40 kB JSON database of countries (which burden to keep up to date).

  2. jviide commented on Oct 28, 2016

    @jviide
    ContributorAuthor

    uriteller used emoji-flags earlier. The size was the reason why I removed it.

  3. jviide commented on Oct 28, 2016

    @jviide
    ContributorAuthor

    emoji-flag depends on punycode2. In our usecase (browser rendering) we can use String.fromCodePoint instead?

  4. jviide commented on Oct 28, 2016

    @jviide
    ContributorAuthor

    In fact it seems that the part of punycode2 that emoji-flag uses does its conversions with String.fromCodePoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions