Installations
npm install emoji-flags-to-country
Developer Guide
Typescript
Yes
Module System
CommonJS
Node Version
16.17.0
NPM Version
8.15.0
Score
71.8
Supply Chain
76.5
Quality
75.9
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
DavideViolante
Download Statistics
Total Downloads
27,469
Last Day
16
Last Week
103
Last Month
805
Last Year
14,920
GitHub Statistics
3 Stars
212 Commits
4 Watching
1 Branches
1 Contributors
Bundle Size
4.26 kB
Minified
1.33 kB
Minified + Gzipped
Package Meta Information
Latest Version
2.4.2
Package Id
emoji-flags-to-country@2.4.2
Unpacked Size
12.63 kB
Size
4.61 kB
File Count
12
NPM Version
8.15.0
Node Version
16.17.0
Total Downloads
Cumulative downloads
Total Downloads
27,469
Last day
23.1%
16
Compared to previous day
Last week
-29.5%
103
Compared to previous week
Last month
-24.5%
805
Compared to previous month
Last year
263.9%
14,920
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
4
Emoji country flags to country code
Convert emoji country flags to country code ISO 3166.
Install
npm i emoji-flags-to-country
Example
1const { flagToCountry, getFlagsInText } = require('emoji-flags-to-country'); 2 3const result1 = flagToCountry('🇮🇹'); 4const result2 = flagToCountry('🇺🇸'); 5const result3 = flagToCountry('🇪🇸'); 6console.log(result1); // IT 7console.log(result2); // US 8console.log(result3); // ES 9 10const result4 = getFlagsInText('This text has 🇺🇸 emoji flags 🇮🇹'); 11console.log(result4); // ['🇺🇸', '🇮🇹'];
Run tests
npm test
Run lint
npm run lint
Author
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
1 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
Reason
dependency not pinned by hash detected -- score normalized to 6
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/DavideViolante/emoji-flags-to-country/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/DavideViolante/emoji-flags-to-country/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/coverage.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/DavideViolante/emoji-flags-to-country/coverage.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/coverage.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/DavideViolante/emoji-flags-to-country/coverage.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/coverage.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/DavideViolante/emoji-flags-to-country/coverage.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npmpublish.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/DavideViolante/emoji-flags-to-country/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/DavideViolante/emoji-flags-to-country/npmpublish.yml/master?enable=pin
- Info: 0 out of 6 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 third-party GitHubAction dependencies pinned
- Info: 3 out of 3 npmCommand dependencies pinned
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
Found 0/1 approved changesets -- score normalized to 0
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/coverage.yml:1
- Warn: no topLevel permission defined: .github/workflows/npmpublish.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
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
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 29 are checked with a SAST tool
Score
3.8
/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-flags-to-country
country-code-emoji
convert country codes (ISO 3166-1 alpha-2) to corresponding emoji flags (unicode regional indicator symbols)
country-flags-emoji
This package enables you to convert country codes into emojis.
emoji-country-flags
Convert country codes to emoji flags
emoji-country-code
Transform ISO 3166-1 country codes to Emoji flags