How to use svg-country-flags - 2 common examples

To help you get started, we’ve selected a few svg-country-flags examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Coding-Coach / find-a-mentor / scripts / create-user.js View on Github external
source: async (answers, input = '') =>
    Object.values(countries)
      .filter(country => country.toLowerCase().startsWith(input.toLowerCase()))
      .sort(),
};
github Coding-Coach / find-a-mentor / scripts / create-user.js View on Github external
function getCountryCodeByName(country) {
  return Object.keys(countries).find(key => countries[key].includes(country));
}

svg-country-flags

SVG and PNG renders of all countries' flags.

PD
Latest version published 4 years ago

Package Health Score

56 / 100
Full package analysis

Popular svg-country-flags functions