{"_id":"@dzangolab/flag-icon-css","_rev":"6-e0a02b55b7bcd2e4c059e4914b86ba32","name":"@dzangolab/flag-icon-css","dist-tags":{"latest":"3.4.5"},"versions":{"3.4.5":{"name":"@dzangolab/flag-icon-css","version":"3.4.5","author":{"name":"Olivier Pichon","email":"op@dzango.com"},"_id":"@dzangolab/flag-icon-css@3.4.5","maintainers":[{"name":"cpxpratik","email":"surajkrstha@gmail.com"},{"name":"rameshlohala","email":"ramesh@united-asian.com"},{"name":"uddhab","email":"uddhab@united-asian.com"},{"name":"opichon","email":"op@dzango.com"}],"homepage":"https://github.com/dzangolab/flag-icon-css#readme","bugs":{"url":"https://github.com/dzangolab/flag-icon-css/issues"},"dist":{"shasum":"db85c9177d062f7737bbbd29ff1fdaf2b6fd1ff6","tarball":"https://registry.npmjs.org/@dzangolab/flag-icon-css/-/flag-icon-css-3.4.5.tgz","fileCount":541,"integrity":"sha512-XqVAi0O/KITtznpMK5TP4D+rWfwst5lrsbPbes5c5SPMGjwK7fuvlTdEmG2XUrxzYqDTIPshywyzdVYKooGdGA==","signatures":[{"sig":"MEQCIAYoFyiHecUdHjrQPwvfCGnB1kCUW+niaSriCkl0+N8rAiATqxQoTinBoGtSi0kXyCRAryseEep8LfMULfzALVCpfA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4903383,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+L4ACRA9TVsSAnZWagAA/hMP/iVErJrqa5J+nwgsWAwK\nnZsU8nYb+Nl3KvQBi5JeWDvZZdmm3GVfmTohocBp6Pox038kCBqYiWE79ijS\ncIFSZgBT2lxzeXrg64x5HLYapAVJzwpVAsHZo+iaxQ6Oz/Kcly7sxjT1KvsF\n/HQJa5p/JeBDKCtWhX0uMVUYadDJfvrNZsTkKJI02r/oEAOda/sLQzuarbC4\ni20I/jLX3YiHop3u/9/4SIGSUhzwzz71WHbDMGiNCGxZqLnixbDl7H7c6UPF\nfsALpoaeTqYs2ot074b2TGenuJ7qxS9XzOq9MRNU0IxXlwEcluHL9PTSydtK\n9KlTDkW7xx+jiycsDX+GQaInk67b0iUcaGaXDewzILGPBPSr/ZnVTuhz1LUk\nBZ/mCXwhTeGpGLBDbF+ecXI23ajxqBlEo6JFdn2PdfBehmRrD9Px9oVrKNWX\npc313ysG3+tTg3+3TkbNERbxy88aZ2UiOza140KYDBeTHst2IfGx9UMfwDJb\nLqsucnxD/K3by1r25rerQbmojSfyvt9R+LtXWcTYPm++ydWHbCpdNBYQUT39\nYZf2z5WTSJatFwPak5gYxfdHRY77SOe5yhxzowlWWG5H3twdla1yU551kbdW\nofyrAlWwUWPNzCZWw+Ylnmov2QhtvrrVTEu/9te0KhHCiIXIShyunZRHAIM7\nnXS5\r\n=uDry\r\n-----END PGP SIGNATURE-----\r\n"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"gitHead":"4790cd86fc0100e04777676c8c38e5b1c7885ac0","scripts":{"fix":"yarn prettier --write","svgo":"svgo --pretty --indent=2 --precision=1 --config=svgo.yaml","test":"yarn prettier --list-different","build":"grunt build","prettier":"prettier \"**/*.{json,md,scss,less,yaml,yml}\"","svgo:all":"find flags | grep '\\.svg$' | xargs -Iz -n 1 yarn svgo z","svgo:min":"find flags | grep '\\.svg$' | xargs -Iz -n 1 svgo --config=svgo.yaml z"},"_npmUser":{"name":"opichon","email":"op@dzango.com"},"licenses":[{"url":"http://opensource.org/licenses/MIT","type":"MIT"}],"repository":{"url":"git+ssh://git@github.com/dzangolab/flag-icon-css.git","type":"git"},"_npmVersion":"6.13.4","description":"> A collection of all country flags in SVG — plus the CSS for easier integration. > See the [demo](http://flag-icon-css.lip.is).","directories":{},"lint-staged":{"*.{json,md,scss,less,yaml,yml}":["prettier --write","git add"]},"_nodeVersion":"12.13.1","_hasShrinkwrap":false,"devDependencies":{"svgo":"1.3.2","grunt":"1.0.4","husky":"3.1.0","prettier":"1.19.1","lint-staged":"9.5.0","grunt-contrib-less":"2.0.0","grunt-contrib-watch":"1.1.0","grunt-contrib-cssmin":"3.0.0","grunt-contrib-connect":"2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/flag-icon-css_3.4.5_1576582655956_0.5963116534378703","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-12-17T11:37:35.731Z","modified":"2026-08-20T10:53:07.353Z","3.4.5":"2019-12-17T11:37:36.282Z"},"bugs":{"url":"https://github.com/dzangolab/flag-icon-css/issues"},"author":{"name":"Olivier Pichon","email":"op@dzango.com"},"homepage":"https://github.com/dzangolab/flag-icon-css#readme","repository":{"url":"git+ssh://git@github.com/dzangolab/flag-icon-css.git","type":"git"},"description":"> A collection of all country flags in SVG — plus the CSS for easier integration. > See the [demo](http://flag-icon-css.lip.is).","maintainers":[{"email":"op@dzango.com","name":"opichon"},{"email":"uddhab@united-asian.com","name":"uddhab"}],"readme":"# flag-icon-css\n\n> A collection of all country flags in SVG — plus the CSS for easier integration.\n> See the [demo](http://flag-icon-css.lip.is).\n\n## Install\n\nYou can either [download](https://github.com/lipis/flag-icon-css/archive/master.zip)\nthe whole project as is or install it via Bower or NPM:\n\n```bash\n$ bower install flag-icon-css\n$ npm install flag-icon-css\n```\n\n## Usage\n\nFor using the flags inline with text add the classes `.flag-icon` and\n`.flag-icon-xx` (where `xx` is the\n[ISO 3166-1-alpha-2 code](https://www.iso.org/obp/ui/#search/code/)\nof a country) to an empty `<span>`. If you want to have a squared version flag\nthen add the class `flag-icon-squared` as well. If you want a rounded flag the add the class `flag-icon-rounded` as well. Example:\n\n```html\n<span class=\"flag-icon flag-icon-gr\"></span>\n<span class=\"flag-icon flag-icon-gr flag-icon-squared\"></span>\n<span class=\"flag-icon flag-icon-gr flag-icon-rounded\"></span>\n```\n\nYou could also apply this to any element, but in that case you'll have to use the\n`flag-icon-background` instead of `flag-icon` and you're set. This will add the\ncorrect background with the following CSS properties:\n\n```css\nbackground-size: contain;\nbackground-position: 50%;\nbackground-repeat: no-repeat;\n```\n\nWhich means that the flag is just going to appear in the middle of an element, so\nyou will have to set manually the correct size of 4 by 3 ratio or if it's squared (rounded)\nadd also the `flag-icon-squared` (`flag-icon-rounded`) class.\n\n## Development\n\nRun the `npm install` to install the dependencies after cloning the project and\nyou'll be able to:\n\nTo watch for changes and live reload if served\n\n```bash\n$ grunt\n```\n\nTo build `*.less` files\n\n```bash\n$ grunt build\n```\n\nTo serve it on `localhost:8000`\n\n```bash\n$ grunt connect\n```\n\nTo have only specific countries in the css file, remove the ones that you don't\nneed from the\n[`flag-icon-list.less`](https://github.com/dzangolab/flag-icon-css/blob/master/less/flag-icon-list.less)\nfile and build it again.\n\n## Credits\n\nThis project is a fork of [lipis/flag-icon-css]((https://github.com/lipis/flag-icon-css). My ojly contribution is to add support for rounded flag icons. The author of the orignal package turned down our PR.\n","readmeFilename":"README.md"}