Installations
npm install country-code-to-flag-emoji
Developer Guide
Typescript
Yes
Module System
ESM
Node Version
20.12.1
NPM Version
10.5.0
Score
79.9
Supply Chain
79.3
Quality
76.5
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Languages
TypeScript (100%)
Developer
wojtekmaj
Download Statistics
Total Downloads
274,841
Last Day
761
Last Week
4,086
Last Month
12,817
Last Year
148,153
GitHub Statistics
57 Stars
225 Commits
5 Forks
3 Watching
1 Branches
2 Contributors
Bundle Size
437.00 B
Minified
301.00 B
Minified + Gzipped
Sponsor this package
Package Meta Information
Latest Version
1.3.3
Package Id
country-code-to-flag-emoji@1.3.3
Unpacked Size
8.82 kB
Size
2.96 kB
File Count
10
NPM Version
10.5.0
Node Version
20.12.1
Publised On
15 Apr 2024
Total Downloads
Cumulative downloads
Total Downloads
274,841
Last day
6.7%
761
Compared to previous day
Last week
8%
4,086
Compared to previous week
Last month
8.8%
12,817
Compared to previous month
Last year
144.5%
148,153
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Country-Code-to-Flag-Emoji
A function that returns a flag emoji given IETF language tag.
tl;dr
- Install by executing
npm install country-code-to-flag-emoji
oryarn add country-code-to-flag-emoji
. - Import by adding
import countryCodeToFlagEmoji from 'country-code-to-flag-emoji'
. - Do stuff with it!
1countryCodeToFlagEmoji('pl'); // 🇵🇱
Accepted formats
- IETF language tag, e.g.
'en-US'
or'US'
Examples
1countryCodeToFlagEmoji('pl'); // '🇵🇱' 2 3countryCodeToFlagEmoji('hu-HU'); // 'ðŸ‡ðŸ‡º'
License
The MIT License.
Author
Wojciech Maj |
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
packaging workflow detected
Details
- Info: Project packages its releases by way of GitHub Actions.: .github/workflows/publish.yml:14
Reason
0 existing vulnerabilities detected
Reason
7 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5
Reason
Found 0/27 approved changesets -- 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/ci.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/wojtekmaj/country-code-to-flag-emoji/ci.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/wojtekmaj/country-code-to-flag-emoji/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:79: update your workflow using https://app.stepsecurity.io/secureworkflow/wojtekmaj/country-code-to-flag-emoji/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:82: update your workflow using https://app.stepsecurity.io/secureworkflow/wojtekmaj/country-code-to-flag-emoji/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:92: update your workflow using https://app.stepsecurity.io/secureworkflow/wojtekmaj/country-code-to-flag-emoji/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/wojtekmaj/country-code-to-flag-emoji/ci.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/wojtekmaj/country-code-to-flag-emoji/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/wojtekmaj/country-code-to-flag-emoji/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/wojtekmaj/country-code-to-flag-emoji/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/wojtekmaj/country-code-to-flag-emoji/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/close-stale-issues.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/wojtekmaj/country-code-to-flag-emoji/close-stale-issues.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/wojtekmaj/country-code-to-flag-emoji/publish.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/wojtekmaj/country-code-to-flag-emoji/publish.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/wojtekmaj/country-code-to-flag-emoji/publish.yml/main?enable=pin
- Info: 0 out of 12 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 2 third-party GitHubAction dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/ci.yml:1
- Warn: no topLevel permission defined: .github/workflows/close-stale-issues.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 4 are checked with a SAST tool
Score
4.7
/10
Last Scanned on 2025-01-20
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 More