Installations
npm install emoji-country-code
Developer Guide
Typescript
No
Module System
CommonJS, UMD
Score
64.9
Supply Chain
73.4
Quality
75.4
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
Download Statistics
Total Downloads
10,214
Last Day
10
Last Week
19
Last Month
36
Last Year
1,827
GitHub Statistics
9 Stars
69 Commits
3 Watching
1 Branches
1 Contributors
Bundle Size
660.00 B
Minified
374.00 B
Minified + Gzipped
Package Meta Information
Latest Version
1.1.0
Package Id
emoji-country-code@1.1.0
Unpacked Size
10.28 kB
Size
3.53 kB
File Count
16
Total Downloads
Cumulative downloads
Total Downloads
10,214
Last day
0%
10
Compared to previous day
Last week
137.5%
19
Compared to previous week
Last month
33.3%
36
Compared to previous month
Last year
-47.2%
1,827
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
emoji-country-code
Transform ISO 3166-1 country codes to Emoji flags
Installation
Installation is the same as any other npm module.
1yarn add emoji-country-code
or
1npm install --save emoji-country-code
Usage
In an ES6+ environment you can either import the named export
1import { fromCountryCode } from 'emoji-country-code'
or use the default export
1import flagEmoji from 'emoji-country-code'
CommonJS and UMD builds are available as well.
API
To transform a country code like BD
to 🇧🇩
, just call the fromCountryCode
function
1const flag = flagEmoji.fromCountryCode('BD') //=> 🇧🇩
That's about it! Use it however you like 🚀
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
security policy file detected
Details
- Info: security policy file detected: github.com/fa7ad/cloudscape.github/SECURITY.md:1
- Info: Found linked content: github.com/fa7ad/cloudscape.github/SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/fa7ad/cloudscape.github/SECURITY.md:1
- Info: Found text in security policy: github.com/fa7ad/cloudscape.github/SECURITY.md:1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gprpublish.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/fa7ad/emoji-country-code/gprpublish.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gprpublish.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/fa7ad/emoji-country-code/gprpublish.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gprpublish.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/fa7ad/emoji-country-code/gprpublish.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gprpublish.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/fa7ad/emoji-country-code/gprpublish.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npmpublish.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/fa7ad/emoji-country-code/npmpublish.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npmpublish.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/fa7ad/emoji-country-code/npmpublish.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npmpublish.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/fa7ad/emoji-country-code/npmpublish.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npmpublish.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/fa7ad/emoji-country-code/npmpublish.yml/master?enable=pin
- Info: 0 out of 8 GitHub-owned GitHubAction dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/gprpublish.yml:1
- Warn: no topLevel permission defined: .github/workflows/npmpublish.yml:1
- Info: no jobLevel write permissions found
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 30 are checked with a SAST tool
Reason
10 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-ff7x-qrg7-qggm
- Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-h9rv-jmmf-4pgx
- Warn: Project is vulnerable to: GHSA-hxcc-f52p-wc94
- Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v
- Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp
Score
3.4
/10
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to emoji-country-code
country-code-emoji
convert country codes (ISO 3166-1 alpha-2) to corresponding emoji flags (unicode regional indicator symbols)
emoji-flags
return emoji flag symbol for country code
country-code-to-flag-emoji
A function that returns a flag emoji given IETF language tag.
react-emoji-country-code-selector
Pure html phone country code selector showing country flags as emojis, built as a React component