{"_id":"@brixtol/country-continent","_rev":"1-f349c8f493df121595aad69f492e3885","name":"@brixtol/country-continent","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@brixtol/country-continent","version":"1.0.0","description":"Mappings for 2 letter (Alpha 2) country codes to Continent code/name","author":{"name":"Νίκος Σαβίδης","email":"n@brixtol.com","url":"https://brixtoltextiles.com"},"license":"MIT","main":"./package/index.js","exports":{"require":"./package/index.js","import":"./package/index.es.js"},"types":"./package/index.d.ts","keywords":["countries","mappings","continents","country","3166-1 alpha-2","ISO 36166"],"repository":{"type":"git","url":"git+https://github.com/brixtol/country-continent.git"},"bugs":{"url":"https://github.com/brixtol/country-continent"},"node":{},"engines":{"pnpm":">=5"},"prettier":"@brixtol/prettier-config","eslintConfig":{"ignorePatterns":"package","extends":"@brixtol/eslint-config","rules":{"no-unused-vars":"off"}},"ava":{"require":["esm"],"files":["test/*.js"],"concurrency":5},"devDependencies":{"@brixtol/eslint-config":"^1.0.1","@brixtol/prettier-config":"^1.2.1","@brixtol/rollup-config":"^1.4.0","@brixtol/tsconfig":"^1.0.0","ava":"^3.15.0","esm":"^3.2.25","typescript":"^4.5.2"},"dependencies":{"@brixtol/tsutils":"^1.4.1"},"scripts":{"dev":"rollup -c -w","build":"rollup -c --environment prod","package":"cd versions; pnpm pack ../ && cd ..","test":"ava --watch --verbose","test:build":"ava --verbose"},"_resolved":"","_integrity":"","_from":"file:brixtol-country-continent-1.0.0.tgz","homepage":"https://github.com/brixtol/country-continent#readme","_id":"@brixtol/country-continent@1.0.0","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-uo7F4vOhLP5zQ1+1mEn6bMdMNpaD0WJ8oJVmdUlIKgD4giGXX8oi6Z27eJig4SH4kXCnk1FNuss3HwwVfqbD9g==","shasum":"19add4f5c362ac4bd4180cfaba7d6313983e7dfd","tarball":"https://registry.npmjs.org/@brixtol/country-continent/-/country-continent-1.0.0.tgz","fileCount":9,"unpackedSize":22156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpr7zCRA9TVsSAnZWagAAJ7sP/jkQD/h2H0HbAtElqj+g\nSmBFtxgeKhcvDC624b7Aom++HvCCDlNcSDoQNWFo2Cwip2aXozcYVGrcDYCo\nPvjfQ0vDwPPPLOepUDX8ve6bapVs65qo7PCusWprVwFekTJFAgrOccAqoS2w\nW3xz1Ppk4jg8BO8N7oxNmlMXKgD05YVw0BZgKPFi0VIkhZWoUl4pOgmY4E89\nYASaeDuu3Y9qEcW/yHNQeFthkG1pUH8m9nvH5um4wfAnd1BCEGT2M4xlLyYb\nNzq4PvCxNXB2+Hu0hRDxNczRgpRlP5vXA9EMpo3TkPylwWNkodCub5Hl3PMg\ngalnAzrsIYQrBTCa0vEhBE27mRnCiMoGm97Uc+2GRxMruPWHH7m8ERdKdpIF\nopfxulZN8ff1RiX16D2ewFOSRmF93EmHk9BSUtd4Hi6Wz49ytTx8OPTbyGj/\nd9vuXCQFzI5UdTLsyNM8Iq/rOA3mNNqpO4PX3PZ54mEeF0Rd6dA9KULR4mPz\n3ChnuN3HpTsauBxGSEf0UyLNex/8nlV41Ft0f2k/G1MIJBG0sQ+YLp9VyeV5\n3zP479yArWlSFb95+FyHodV+FzFRb2by0/kXPwSWtUlgpuPALfji9LZyowy3\nEyjEeCpjuvEfoiqxqLgqBIyNNn2U9uEGyrXj8UkmnDW2Wz9xvnWc3y+KqCDO\n8y9e\r\n=UL2Q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNOjvavVyfWXTMVv9FTnACnA0CklyP+5yj4QiesbCQmgIhAOe5Gd4HWB7gkn/wJF0Wz3Yq7g05M/qnHa0cOOpaDri3"}]},"_npmUser":{"name":"sissel","email":"nicos.savidis@gmail.com"},"directories":{},"maintainers":[{"name":"sissel","email":"nicos.savidis@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/country-continent_1.0.0_1638317810854_0.01758611478414962"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-01T00:16:50.814Z","1.0.0":"2021-12-01T00:16:51.030Z","modified":"2022-04-04T20:43:53.561Z"},"maintainers":[{"name":"sissel","email":"nicos.savidis@gmail.com"}],"description":"Mappings for 2 letter (Alpha 2) country codes to Continent code/name","homepage":"https://github.com/brixtol/country-continent#readme","keywords":["countries","mappings","continents","country","3166-1 alpha-2","ISO 36166"],"repository":{"type":"git","url":"git+https://github.com/brixtol/country-continent.git"},"author":{"name":"Νίκος Σαβίδης","email":"n@brixtol.com","url":"https://brixtoltextiles.com"},"bugs":{"url":"https://github.com/brixtol/country-continent"},"license":"MIT","readme":"## @brixtol/country-continent\n\nCountry code ([3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)) to Continent code/name mappings used by the [Brixtol Textiles](https://www.brixtoltextiles.com) internal API when dealing with Localization and i18n operations.\n\n> Mappings returned in the English Language.\n\nMinified: 2.39 KB <br>\nGzipped: 897 B\n\n### Install\n\n[pnpm](https://pnpm.js.org/en/cli/install)\n\n```cli\npnpm add @brixtol/country-continent\n```\n\n[npm](https://www.npmjs.com/)\n\n```cli\nnpm install @brixtol/country-continent\n```\n\n[Yarn](https://yarnpkg.com/)\n\n```cli\nyarn add @brixtol/country-continent\n```\n\n### Usage\n\nYou can pass in a 2 letter country code that is lowercase, uppercase or a mixture of both.\n\n```javascript\nimport { getContinentCode, getContinentName } from '@brixtol/country-continent';\n\nconst sweden = getContinentName('SE'); // Europe\nconst russia = getContinentName('ru'); // Asia\nconst usa = getContinentName('uS'); // North America\nconst australia = getContinentCode('AU'); // OC\n```\n\n###### EXTRAS\n\nThe module also exposes the raw mappings and interface on the export. The mappings object is provided **read only** using [Object.freeze](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze). In addition to the raw mappings a ISO code union export is also exposed.\n\n<!--prettier-ignore-->\n```ts\nimport { IContinents, ContinentCodes, ContinentNames } from '@brixtol/country-continent';\n\n// Mapping Object\n\nContinentCodes.SE; // EU\nContinentNames.SE; // Europe\nContinentCodes.NL; // EU\nContinentNames.NL; // Europe\nContinentCodes.RU; // AS\nContinentNames.RU; // Asia\n\n// Interface\n\nIContinents.SE; // EU\nIContinents.NL; // EU\nIContinents.RU; // AS\n```\n\n> The interface is identical to the mapping\n\n### Related\n\nStatic GeoIP utility\n\n- [@brixtol/i18n](https://github.com/brixtol/i18n)\n\nCountry code to currency code mappings:\n\n- [@brixtol/currency-codes](https://github.com/brixtol/currency-codes)\n\nCurrency code to currency symbol mappings:\n\n- [@brixtol/currency-symbols](https://github.com/brixtol/currency-symbols)\n\n### License\n\nLicensed under [MIT](#LICENCE)\n\n---\n\nWe [♡](https://www.brixtoltextiles.com/discount/4D3V3L0P3RS]) open source!\n","readmeFilename":"readme.md"}