emoji-flags - npm
文章推薦指數: 80 %
npm install --global emoji-flags. $ emoji-flags --help. return emoji flag symbol for country code. Example. emoji-flags gb. emoji-flags1.3.0 • Public • Published2yearsagoReadmeExploreBETA2Dependencies24Dependents5Versionsemoji-flags returnemojiflagsymbolforcountrycode Install $ npm install --save emoji-flags Usage var emojiFlags = require('emoji-flags'); // single country lookup by codeemojiFlags.countryCode('DK');// => { "code": "DK", "emoji": "🇩🇰", ... } // entire datasetemojiFlags.data; CLI $ npm install --global emoji-flags $ emoji-flags --help return emoji flag symbol for country code Example emoji-flags gb emoji-flags dk --verbose emoji-flags => returns the entire dataset API countryCode Option Type:String Default:undefined TakesanISO3166-1alpha-2code,andreturnscountrydetails: { "code": "DK", "emoji": "🇩🇰", "unicode": "U+1F1E9 U+1F1F0", "name": "Denmark", "title": "flag for Denmark"} Getters Themoduleexposesabunchofsimplegettermethods: data-returnstheentiredataset emojis-returnsanarrayofallemojis codes-returnsanarrayofallcountrycodes names-returnsanarrayofallcountrynames unicodes-returnsanarrayofallemojisreprensentedasunicode Gettermethodsforallcountrycodes: emojiFlags.GB;// => {// "code": "GB",// "emoji": "🇬🇧",// "unicode": "U+1F1EC U+1F1E7",// "name": "United Kingdom",// "title": "flag for United Kingdom"// } License MIT©MatiasSingers KeywordsemojicountriesflagcountrycodeemojiflagcountryflagISO3166-1ISO3166-1-alpha-2Installnpmiemoji-flagsRepositoryGitgithub.com/matiassingers/emoji-flagsHomepagegithub.com/matiassingers/emoji-flagsDownloadsWeeklyDownloads11,220Version1.3.0LicenseMITUnpackedSize55.3kBTotalFiles6Lastpublish2yearsagoCollaboratorsTryonRunKitReportmalware
延伸文章資訊
- 1List of Emoji Flags to Copy and Paste - Emojipedia
🎌 Flags · 🏁 Chequered Flag · 🚩 Triangular Flag · 🎌 Crossed Flags · 🏴 Black Flag · 🏳️ White Flag ·...
- 2🚩Red Flag Emoji – Meaning & Examples | Dictionary.com
- 3🚩Red Flag Emoji – Meaning & Examples | Dictionary.com
The Red Flag emoji 🚩, which is popularly known as Triangular Flag emoji 🚩, was approved under Uni...
- 4🏳️🌈 Rainbow Flag Emoji – Meaning & Examples | Dictionary.com
- 5People are using the red flag emoji to signal warning signs ...
The standard emoji, a simple red flag, is called "triangular flag on post" by Unicode, the non-pr...