{"_id":"ts-country-iso-2-to-3","_rev":"4-3a829317d91aa1957b6102027266a568","name":"ts-country-iso-2-to-3","dist-tags":{"latest":"1.3.0"},"versions":{"1.0.0":{"name":"ts-country-iso-2-to-3","version":"1.0.0","keywords":["country","code","country","iso","alpha-3","alpha","3","alpha-2","alpha","2","3166","typescript","ts"],"license":"MIT","_id":"ts-country-iso-2-to-3@1.0.0","maintainers":[{"name":"cjcbusatto","email":"cjcbusatto@gmail.com"}],"contributors":[{"url":"@cjcbusatto","name":"Claudio Busatto"},{"url":"@klzns","name":"Breno Calazans"}],"homepage":"https://github.com/cjcbusatto/ts-country-iso-2-to-3#readme","bugs":{"url":"https://github.com/cjcbusatto/ts-country-iso-2-to-3/issues"},"dist":{"shasum":"0a9a44d1a5057ce5c509ffd57a510599c12ca00f","tarball":"https://registry.npmjs.org/ts-country-iso-2-to-3/-/ts-country-iso-2-to-3-1.0.0.tgz","fileCount":6,"integrity":"sha512-8xe1UlevI9lErWzSYOFlMfKUy0goCq/1T4vdjvI629oT2faT4yB80I+YI1ERw0KwvY5u0KUK3GJfylQU1wRYwA==","signatures":[{"sig":"MEUCIGHkRvRBxk0v98EBGrz7hy6btB2EFFbLS2+1Grp6+Mm4AiEAj6vfmjsitCorBw9AXDYg+idb3zV1RzjpZ5EV6Tf2FS4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6519},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"ead67798017dfab1a54b6bf1d5d1d92c2d291f7a","scripts":{"lint":"eslint . --ext .ts","test":"vitest","build":"tsc"},"_npmUser":{"name":"cjcbusatto","email":"cjcbusatto@gmail.com"},"repository":{"url":"git+ssh://git@github.com/cjcbusatto/ts-country-iso-2-to-3.git","type":"git"},"_npmVersion":"9.6.7","description":"Convert a country code ISO 3166-1 Alpha-2 to ISO 3166-1 Alpha-3 with types!","directories":{},"_nodeVersion":"18.17.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.47.0","vitest":"^0.34.1","prettier":"^3.0.1","typescript":"^5.1.6","eslint-plugin-n":"^16.0.1","eslint-plugin-import":"^2.28.0","eslint-plugin-promise":"^6.1.1","eslint-config-prettier":"^9.0.0","@typescript-eslint/eslint-plugin":"^5.62.0","eslint-config-standard-with-typescript":"^37.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ts-country-iso-2-to-3_1.0.0_1692116230651_0.02427456431776287","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"ts-country-iso-2-to-3","version":"1.0.1","keywords":["country","code","country","iso","alpha-3","alpha","3","alpha-2","alpha","2","3166","typescript","ts"],"license":"MIT","_id":"ts-country-iso-2-to-3@1.0.1","maintainers":[{"name":"cjcbusatto","email":"cjcbusatto@gmail.com"}],"contributors":[{"url":"@cjcbusatto","name":"Claudio Busatto"},{"url":"@klzns","name":"Breno Calazans"}],"homepage":"https://github.com/cjcbusatto/ts-country-iso-2-to-3#readme","bugs":{"url":"https://github.com/cjcbusatto/ts-country-iso-2-to-3/issues"},"dist":{"shasum":"112b1da98d9dee417bdd35b1410ccc9e34c63b34","tarball":"https://registry.npmjs.org/ts-country-iso-2-to-3/-/ts-country-iso-2-to-3-1.0.1.tgz","fileCount":6,"integrity":"sha512-JjPbPrb0WrYEV4PLN2gv4g61QavLg+k7kgN+RkWG9g+zYMytOh57wZmFX+G0f5Ci1k0jV8nwQxkfOum+VeFxLQ==","signatures":[{"sig":"MEYCIQDGvlHMDqIyU4Ep/3AuKY/cImMZSB/KJ43gC3OSqg1MBAIhAI5ZPkAxZTEU2l3WZjUjWmBcZWmfsrflfTMewVSHv+nI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6517},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"2462fb4b79d6ec72cc0c2813010ebc9233eb331c","scripts":{"lint":"eslint . --ext .ts","test":"vitest","build":"tsc"},"_npmUser":{"name":"cjcbusatto","email":"cjcbusatto@gmail.com"},"repository":{"url":"git+ssh://git@github.com/cjcbusatto/ts-country-iso-2-to-3.git","type":"git"},"_npmVersion":"9.6.7","description":"Convert a country code ISO 3166-1 Alpha-2 to ISO 3166-1 Alpha-3 with types!","directories":{},"_nodeVersion":"18.17.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.47.0","vitest":"^0.34.1","prettier":"^3.0.1","typescript":"^5.1.6","eslint-plugin-n":"^16.0.1","eslint-plugin-import":"^2.28.0","eslint-plugin-promise":"^6.1.1","eslint-config-prettier":"^9.0.0","@typescript-eslint/eslint-plugin":"^5.62.0","eslint-config-standard-with-typescript":"^37.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ts-country-iso-2-to-3_1.0.1_1692298591517_0.5472844873332603","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"ts-country-iso-2-to-3","version":"1.1.0","keywords":["country","code","country","iso","alpha-3","alpha","3","alpha-2","alpha","2","3166","typescript","ts"],"license":"MIT","_id":"ts-country-iso-2-to-3@1.1.0","maintainers":[{"name":"cjcbusatto","email":"cjcbusatto@gmail.com"}],"contributors":[{"url":"@cjcbusatto","name":"Claudio Busatto"},{"url":"@klzns","name":"Breno Calazans"}],"homepage":"https://github.com/cjcbusatto/ts-country-iso-2-to-3#readme","bugs":{"url":"https://github.com/cjcbusatto/ts-country-iso-2-to-3/issues"},"dist":{"shasum":"7dbedc3c84f0624548fbe407f174ca68a584b397","tarball":"https://registry.npmjs.org/ts-country-iso-2-to-3/-/ts-country-iso-2-to-3-1.1.0.tgz","fileCount":6,"integrity":"sha512-iW4KPJU90Xb7Y3LTgux9Dv8sZnjCjkAlMXErH7qOjg74p8EzcIDDKmMdSAvMXHbVbfGWyp43aqei7zqneCUVuw==","signatures":[{"sig":"MEQCIF4gZ9Fb4qetSLWV8DCBHBA8rUy+qy1gqbFm4rIlTqbmAiAU82etEEsxHOAUSOn4PzoS+NSg6Ln9CctdfMY6ZO01qA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6532},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"3278fec6ea56f41c2bc10603c7e98d965e24bc17","scripts":{"lint":"eslint . --ext .ts","test":"vitest","build":"tsc"},"_npmUser":{"name":"cjcbusatto","email":"cjcbusatto@gmail.com"},"repository":{"url":"git+ssh://git@github.com/cjcbusatto/ts-country-iso-2-to-3.git","type":"git"},"_npmVersion":"9.6.7","description":"Convert a country code ISO 3166-1 Alpha-2 to ISO 3166-1 Alpha-3 with types!","directories":{},"_nodeVersion":"18.17.1","_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.47.0","vitest":"^0.34.1","prettier":"^3.0.1","typescript":"^5.1.6","eslint-plugin-n":"^16.0.1","eslint-plugin-import":"^2.28.0","eslint-plugin-promise":"^6.1.1","eslint-config-prettier":"^9.0.0","@typescript-eslint/eslint-plugin":"^5.62.0","eslint-config-standard-with-typescript":"^37.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ts-country-iso-2-to-3_1.1.0_1692299719697_0.08887312711272277","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"ts-country-iso-2-to-3","version":"1.2.0","keywords":["country","code","country","iso","alpha-3","alpha","3","alpha-2","alpha","2","3166","typescript","ts"],"license":"MIT","_id":"ts-country-iso-2-to-3@1.2.0","maintainers":[{"name":"cjcbusatto","email":"cjcbusatto@gmail.com"}],"contributors":[{"url":"@cjcbusatto","name":"Claudio Busatto"},{"url":"@klzns","name":"Breno Calazans"}],"homepage":"https://github.com/cjcbusatto/ts-country-iso-2-to-3#readme","bugs":{"url":"https://github.com/cjcbusatto/ts-country-iso-2-to-3/issues"},"dist":{"shasum":"c80d22adb353384091ec41944152e9f9ca255779","tarball":"https://registry.npmjs.org/ts-country-iso-2-to-3/-/ts-country-iso-2-to-3-1.2.0.tgz","fileCount":6,"integrity":"sha512-8hUa1kvb6qD17qiaI046YrMZn/MDBob0BQC33JUH/tOvulYg/pMG2CGltGJKtYsddQu4k+Fe81pZrz+UQGfeBA==","signatures":[{"sig":"MEUCIEoZR8EKEvOatsz8sdb84ZSJ7EHyaIDWGy//2MJIbc90AiEA0TxXaD/7PTHhICwlQHGBo1RJwRPgBTBtBhvF6nsE+qw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6562},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"fbf981988c3ead1d150942d233a668f8edb2329c","scripts":{"lint":"eslint . --ext .ts","test":"vitest","build":"tsc"},"_npmUser":{"name":"cjcbusatto","email":"cjcbusatto@gmail.com"},"repository":{"url":"git+ssh://git@github.com/cjcbusatto/ts-country-iso-2-to-3.git","type":"git"},"_npmVersion":"9.6.7","description":"Convert a country code ISO 3166-1 Alpha-2 to ISO 3166-1 Alpha-3 with types!","directories":{},"_nodeVersion":"18.17.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.47.0","vitest":"^0.34.1","prettier":"^3.0.1","typescript":"^5.1.6","eslint-plugin-n":"^16.0.1","eslint-plugin-import":"^2.28.0","eslint-plugin-promise":"^6.1.1","eslint-config-prettier":"^9.0.0","@typescript-eslint/eslint-plugin":"^5.62.0","eslint-config-standard-with-typescript":"^37.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ts-country-iso-2-to-3_1.2.0_1692301425279_0.060140771529911596","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"ts-country-iso-2-to-3","version":"1.3.0","description":"Convert a country code ISO 3166-1 Alpha-2 to ISO 3166-1 Alpha-3 with types!","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","test":"vitest","lint":"eslint . --ext .ts"},"repository":{"type":"git","url":"git+ssh://git@github.com/cjcbusatto/ts-country-iso-2-to-3.git"},"keywords":["country","code","country","iso","alpha-3","alpha","3","alpha-2","alpha","2","3166","typescript","ts"],"contributors":[{"name":"Claudio Busatto","url":"@cjcbusatto"},{"name":"Breno Calazans","url":"@klzns"}],"license":"MIT","bugs":{"url":"https://github.com/cjcbusatto/ts-country-iso-2-to-3/issues"},"homepage":"https://github.com/cjcbusatto/ts-country-iso-2-to-3#readme","devDependencies":{"@typescript-eslint/eslint-plugin":"^5.62.0","eslint":"^8.47.0","eslint-config-prettier":"^9.0.0","eslint-config-standard-with-typescript":"^37.0.0","eslint-plugin-import":"^2.28.0","eslint-plugin-n":"^16.0.1","eslint-plugin-promise":"^6.1.1","prettier":"^3.0.1","typescript":"^5.1.6","vitest":"^0.34.1"},"_id":"ts-country-iso-2-to-3@1.3.0","gitHead":"6ffe53fe1f3c181fa77a4c0f27025d625359ee8d","_nodeVersion":"18.20.4","_npmVersion":"10.7.0","dist":{"integrity":"sha512-FUHZIMlSaT80YTlgCBjclMptNXy9OOv0SwWbD8ArpfYMV0lnTEKj+x1FW+KCjW+S9TPLX/Z7jLaHzF/tBLQTyg==","shasum":"9e9bdb4dfc3d141eaf338769a22342cf40e22615","tarball":"https://registry.npmjs.org/ts-country-iso-2-to-3/-/ts-country-iso-2-to-3-1.3.0.tgz","fileCount":6,"unpackedSize":7200,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHQ9xsjAMm5fxJXjnRLLpx4ZN3Qp7L7vvQBJH8DYv42yAiBqMdFZ+VggGAS9Ecc5NpH8vDpvmOlJ8iETuNbA+ja25A=="}]},"_npmUser":{"name":"cjcbusatto","email":"cjcbusatto@gmail.com"},"directories":{},"maintainers":[{"name":"cjcbusatto","email":"cjcbusatto@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-country-iso-2-to-3_1.3.0_1727097263037_0.0889165337669875"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-15T16:17:10.650Z","modified":"2024-09-23T13:14:23.430Z","1.0.0":"2023-08-15T16:17:10.907Z","1.0.1":"2023-08-17T18:56:31.769Z","1.1.0":"2023-08-17T19:15:19.884Z","1.2.0":"2023-08-17T19:43:45.482Z","1.3.0":"2024-09-23T13:14:23.235Z"},"bugs":{"url":"https://github.com/cjcbusatto/ts-country-iso-2-to-3/issues"},"license":"MIT","homepage":"https://github.com/cjcbusatto/ts-country-iso-2-to-3#readme","keywords":["country","code","country","iso","alpha-3","alpha","3","alpha-2","alpha","2","3166","typescript","ts"],"repository":{"type":"git","url":"git+ssh://git@github.com/cjcbusatto/ts-country-iso-2-to-3.git"},"description":"Convert a country code ISO 3166-1 Alpha-2 to ISO 3166-1 Alpha-3 with types!","contributors":[{"name":"Claudio Busatto","url":"@cjcbusatto"},{"name":"Breno Calazans","url":"@klzns"}],"maintainers":[{"name":"cjcbusatto","email":"cjcbusatto@gmail.com"}],"readme":"# ts-country-iso-2-to-3\n\n> Convert a country code ISO 3166-1 Alpha-2 to ISO 3166-1 Alpha-3... with types!\n\n## Introduction\n\nThis is a fork of [country-iso-2-to-3](https://github.com/vtex/country-iso-2-to-3).\n\n## Install\n\n```sh\n$ npm install ts-country-iso-2-to-3\n```\n\n## Usage\n\n```ts\nimport { getCountryISO3 } from 'ts-country-iso-2-to-3'\n\nconsole.log(getCountryISO3('BR')) // BRA\nconsole.log(getCountryISO3('br')) // BRA\nconsole.log(getCountryISO3('US')) // USA\nconsole.log(getCountryISO3('us')) // USA\n\nconsole.log(getCountryISO3('')) // Error: Country code is required\nconsole.log(getCountryISO3(123 as string)) // Error: Country code should be a string\nconsole.log(getCountryISO3('USA')) // Error: Country code should be 2 characters long\nconsole.log(getCountryISO3('INVALID_ISO2')) // Error: No ISO3 reference was found for ISO2: \"INVALID_ISO2\"\n```\n\n## API\n\n### getCountryISO3(countryCode: string): string\n\n**Parameter**:\nA string with a country code in ISO 3166-1 Alpha-2\n\n**Return**:\nA string with the country code in ISO 3166-1 Alpha-3\n\n---\n\n## License\n\nMIT © Balcony207\n","readmeFilename":"README.md"}