{"_id":"@consonant-inc/iso-flags","_rev":"1-810693b6d416e6b64380e075e2eb2601","name":"@consonant-inc/iso-flags","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@consonant-inc/iso-flags","version":"1.0.0","keywords":["country","flags","svg","country-flags"],"author":{"name":"Nelson Nelson-Atuonwu"},"license":"MIT","_id":"@consonant-inc/iso-flags@1.0.0","maintainers":[{"name":"consonant-inc","email":"dev@consonant.africa"}],"homepage":"https://github.com/Kunoacc/country-flags-svg#readme","bugs":{"url":"https://github.com/Kunoacc/country-flags-svg/issues"},"dist":{"shasum":"9571c5a68ce20284f0481110ca565ba6d921525b","tarball":"https://registry.npmjs.org/@consonant-inc/iso-flags/-/iso-flags-1.0.0.tgz","fileCount":7,"integrity":"sha512-VtiTUTznamvF7eGZAVFc6xh/ad7kxh1LybFKsBDlJBJG8yXiAK6h3ZYWpUpZQQal2tnqCjmivWqS4UaOAgLSkg==","signatures":[{"sig":"MEUCIAmc7PDmixaTXQaq0w2Fq+XsGopGe8wyyeym1EJD0A9pAiEAllU9aqzpUydTGT0eyTbldQsnsSkOfmEmoZQDi6WnrXM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184576},"tsup":{"dts":true,"clear":true,"entry":["src/index.ts"],"format":["cjs","esm"],"minify":true,"target":"node16","treeshake":true},"type":"module","engines":{"node":">=16.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"e0c08df30254f8c5985b8dc2a4f8ecbe54173552","scripts":{"test":"jest","build":"tsup","clean":"rimraf dist coverage","prepare":"npm run clean && npm run test && npm run build","test-coverage":"jest --coverage"},"_npmUser":{"name":"consonant-inc","email":"dev@consonant.africa"},"repository":{"url":"git+https://github.com/Kunoacc/country-flags-svg.git","type":"git"},"_npmVersion":"10.7.0","description":"A list of countries with url links to a svg image which you can simply use in your web application","directories":{},"sideEffects":false,"_nodeVersion":"20.15.1","_hasShrinkwrap":false,"devDependencies":{"jest":"29.6.1","tsup":"7.1.0","rimraf":"3.0.2","codecov":"3.8.3","ts-jest":"29.1.1","coveralls":"3.1.1","typescript":"5.1.6","@types/jest":"29.5.3"},"_npmOperationalInternal":{"tmp":"tmp/iso-flags_1.0.0_1723719436585_0.20983855354984082","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@consonant-inc/iso-flags","version":"1.0.4","description":"A list of countries with url links to a svg image which you can simply use in your web application","type":"module","exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs","types":"./dist/index.d.ts"},"./package.json":"./package.json"},"sideEffects":false,"scripts":{"clean":"rimraf dist coverage","test":"jest","test-coverage":"jest --coverage","build":"tsup","prepare":"npm run clean && npm run test && npm run build"},"repository":{"type":"git","url":"git+https://github.com/Kunoacc/country-flags-svg.git"},"keywords":["country","flags","svg","country-flags"],"author":{"name":"Nelson Nelson-Atuonwu"},"license":"MIT","bugs":{"url":"https://github.com/Kunoacc/country-flags-svg/issues"},"homepage":"https://github.com/Kunoacc/country-flags-svg#readme","devDependencies":{"@types/jest":"29.5.3","codecov":"3.8.3","coveralls":"3.1.1","jest":"29.6.1","rimraf":"3.0.2","ts-jest":"29.1.1","tsup":"7.1.0","typescript":"5.1.6"},"engines":{"node":">=16.0.0"},"tsup":{"dts":true,"treeshake":true,"minify":true,"target":"node16","format":["cjs","esm"],"entry":["src/index.ts"],"clear":true},"_id":"@consonant-inc/iso-flags@1.0.4","gitHead":"e0c08df30254f8c5985b8dc2a4f8ecbe54173552","_nodeVersion":"20.15.1","_npmVersion":"10.7.0","dist":{"integrity":"sha512-lLAi1+jOGdLNz8uGIEJmKbLc3o0LF85ebdHtqwn+Ma4MMPQ10RtS+vi8FWzdlISlQHcEUw/9ZE+W9By2DUiA6w==","shasum":"a5c73774f45d7331e61eb11f7e166db36ef55f5e","tarball":"https://registry.npmjs.org/@consonant-inc/iso-flags/-/iso-flags-1.0.4.tgz","fileCount":7,"unpackedSize":184937,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGIJY55ukEaLf2j+WMdemQqo+ct5oaow5QU0uKh3uDbnAiBZD+DdJbQprLqqTgyQozrRzocs12UEMzenJUV2p5Bfgw=="}]},"_npmUser":{"name":"consonant-inc","email":"dev@consonant.africa"},"directories":{},"maintainers":[{"name":"consonant-inc","email":"dev@consonant.africa"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/iso-flags_1.0.4_1723720106518_0.08391406749798835"},"_hasShrinkwrap":false}},"time":{"created":"2024-08-15T10:57:16.482Z","modified":"2024-08-15T11:08:26.897Z","1.0.0":"2024-08-15T10:57:16.736Z","1.0.4":"2024-08-15T11:08:26.726Z"},"bugs":{"url":"https://github.com/Kunoacc/country-flags-svg/issues"},"author":{"name":"Nelson Nelson-Atuonwu"},"license":"MIT","homepage":"https://github.com/Kunoacc/country-flags-svg#readme","keywords":["country","flags","svg","country-flags"],"repository":{"type":"git","url":"git+https://github.com/Kunoacc/country-flags-svg.git"},"description":"A list of countries with url links to a svg image which you can simply use in your web application","maintainers":[{"name":"consonant-inc","email":"dev@consonant.africa"}],"readme":"# country-flags-svg\n\nA list of countries with url links to a svg image which you can simply use in your web application\n\n[![NPM](https://nodei.co/npm/country-flags-svg.png?downloads=true)](https://nodei.co/npm/country-flags-svg/)\n\n\n[![Coveralls][coveralls-badge]][coveralls]\n![npm](https://img.shields.io/npm/l/country-flags-svg.svg?style=flat-square)\n\n\n\n[build-badge]: https://img.shields.io/travis/ronatskiy/country-flags-svg/master.png?style=flat-square\n[build]: https://travis-ci.org/ronatskiy/country-flags-svg\n\n[coveralls-badge]: https://img.shields.io/coveralls/ronatskiy/country-flags-svg/master.png?style=flat-square\n[coveralls]: https://coveralls.io/github/ronatskiy/country-flags-svg\n\n\n## Install\n\n```sh\n$ npm install country-flags-svg\n```\nor\n\n```sh\n$ yarn add country-flags-svg\n```\n\n## Usage\n\n```js\nimport { findFlagUrlByNationality } from \"country-flags-svg\";\n\nconst flagUrl = findFlagUrlByNationality(\"Australian\");\n// => \"http://upload.wikimedia.org/wikipedia/commons/8/88/Flag_of_Australia_%28converted%29.svg\"\n\n```\n\n```js\nimport { countries } from \"country-flags-svg\";\n\nconst australia = countries[0];\n\nconsole.log(australia);\n/* => {\n\t\tname: \"Australia\",\n\t\tdemonym: \"Australian\",\n\t\tflag: \"http://upload.wikimedia.org/wikipedia/commons/8/88/Flag_of_Australia_%28converted%29.svg\",\n\t\tiso2: \"AU\",\n\t\tiso3: \"AUS\",\n\t}\n*/\n```\n\n## API\n\n### `countries`\n\nReturns all available information.\n\n\n### `findFlagUrlByCountryName(countryName)`\n\nReturns SVG link of the official flag for a specified country (according to countryName) or empty string if is not exist\n\n### `findFlagUrlByNationality(nationality)`\n\nReturns SVG link of the official flag for a specified country (according to nationality) or empty string if is not exist\n\n### `findFlagUrlByIso2Code(iso2Code)`\n\nReturns SVG link of the official flag for a specified country (according to [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code) or empty string if is not exist\n\n### `findFlagUrlByIso3Code(iso3Code)`\n\nReturns SVG link of the official flag for a specified country (according to [ISO 3166-1 alpha-3](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) code) or empty string if is not exist\n\n## Available Flags\n\nThe full list of available flags you can see on the [Docs page](https://ronatskiy.github.io/country-flags-svg/)\n\nif not enough don't be shy and provide merge request ;)\n\n## License\n\nLicensed under **MIT**.\n","readmeFilename":"README.md"}