{"_id":"localized-countries-states","_rev":"9-0726c885c054524228bc2c7328c179a9","name":"localized-countries-states","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"localized-countries-states","version":"1.0.0","keywords":["iso-3166","iso-3166-1","iso-3166-2","countries","states","provinces","subdivisions","localization","i18n","bcp47"],"author":{"name":"iampanthera","email":"dev.talhaakram@gmail.com"},"license":"ISC","_id":"localized-countries-states@1.0.0","maintainers":[{"name":"iampanthera958","email":"dev.talhaakram@gmail.com"}],"dist":{"shasum":"5b677a32d0b4f91af0bcd0b2fa14dc6c8b5300ea","tarball":"https://registry.npmjs.org/localized-countries-states/-/localized-countries-states-1.0.0.tgz","fileCount":18,"integrity":"sha512-lSDzDFtTjRWamtehjA1n0Vmylvh2FxKl83bK4JVrQd53EJx8RstL3qevREpo65WL5AfeBmrvS3DlynylqKfTGA==","signatures":[{"sig":"MEQCIGHCg++kT4gk3tH908DTk8CkMZI1ZfCUo8ZR4UyOZFnkAiA+bVsgMU9oQ6oXM0A4WGnj7P34xTa3YGmhyDM3iYP0rg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1259844},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./compat":{"types":"./dist/compat/index.d.ts","default":"./dist/compat/index.js"}},"gitHead":"f127e3b3f8e9609f04307e7a99503f56823fb49a","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","build":"tsc","build:data":"node scripts/build-data.mjs","prepublishOnly":"npm run build:data && npm run build"},"_npmUser":{"name":"iampanthera958","email":"dev.talhaakram@gmail.com"},"_npmVersion":"10.9.2","description":"ISO 3166-1 countries and official ISO 3166-2 states/provinces with localized names in 12 languages.","directories":{"test":"tests"},"sideEffects":false,"_nodeVersion":"22.13.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.4","ts-jest":"^29.4.0","iso-3166":"^4.4.0","typescript":"^5.8.3","@types/jest":"^30.0.0","@types/node":"^26.1.0"},"_npmOperationalInternal":{"tmp":"tmp/localized-countries-states_1.0.0_1783362491883_0.9357429061334668","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"localized-countries-states","version":"1.0.1","keywords":["iso-3166","iso-3166-1","iso-3166-2","countries","states","provinces","subdivisions","localization","i18n","bcp47"],"author":{"name":"iampanthera","email":"dev.talhaakram@gmail.com"},"license":"ISC","_id":"localized-countries-states@1.0.1","maintainers":[{"name":"iampanthera958","email":"dev.talhaakram@gmail.com"}],"dist":{"shasum":"ba66463205409470f47e4541bbb89f5428d0f977","tarball":"https://registry.npmjs.org/localized-countries-states/-/localized-countries-states-1.0.1.tgz","fileCount":18,"integrity":"sha512-0HMif8aRPYxqVQOVHg1/VqXS6L+wCquoM4vvul0JRXZ8GbtnljQn99HZzG5cex1uszrWGlza6ch3zyuta8GyGg==","signatures":[{"sig":"MEUCIQD6JNyNVptujBbh2d6mXN26022sRxbtpKqGaDwhRCPNNwIgUCBvmSwt16r4xq0zLALHHE93cN1ZklN8ioEwuQDgpo4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1258269},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./compat":{"types":"./dist/compat/index.d.ts","default":"./dist/compat/index.js"}},"gitHead":"f180a34c66e2dddf30b37d13aa1f94ecb9774699","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","build":"tsc","build:data":"node scripts/build-data.mjs","prepublishOnly":"npm run build:data && npm run build"},"_npmUser":{"name":"iampanthera958","email":"dev.talhaakram@gmail.com"},"_npmVersion":"10.9.2","description":"ISO 3166-1 countries and official ISO 3166-2 states/provinces with localized names in 12 languages.","directories":{"test":"tests"},"sideEffects":false,"_nodeVersion":"22.13.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.4","ts-jest":"^29.4.0","iso-3166":"^4.4.0","typescript":"^5.8.3","@types/jest":"^30.0.0","@types/node":"^26.1.0"},"_npmOperationalInternal":{"tmp":"tmp/localized-countries-states_1.0.1_1783363349162_0.8005382557278771","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"localized-countries-states","version":"1.0.2","keywords":["iso-3166","iso-3166-1","iso-3166-2","countries","states","provinces","subdivisions","localization","i18n","bcp47"],"author":{"name":"iampanthera","email":"dev.talhaakram@gmail.com"},"license":"ISC","_id":"localized-countries-states@1.0.2","maintainers":[{"name":"iampanthera958","email":"dev.talhaakram@gmail.com"}],"homepage":"https://github.com/iampanthera/localized-countries-states#readme","bugs":{"url":"https://github.com/iampanthera/localized-countries-states/issues"},"dist":{"shasum":"2ddf20c08a6d0e78f162b5c24569ed900411c1b5","tarball":"https://registry.npmjs.org/localized-countries-states/-/localized-countries-states-1.0.2.tgz","fileCount":18,"integrity":"sha512-n9ATDd+lJXI934uP3+J2KULREp2YW3XWQ0kRYkbrkFw5vNDVo3ARGCajV+FhtC4Nb3Z3MnFS8CGIf3E1MfolAg==","signatures":[{"sig":"MEUCIBLLUOQTBNj8G01cFNttVbk1yNSbJkrw8KpSUjAQwr4nAiEA6jUKsh0tL4yDRbY3nsoNGSdb3UEjYxE5XkkS9/pOlF4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1258568},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./compat":{"types":"./dist/compat/index.d.ts","default":"./dist/compat/index.js"}},"gitHead":"2f058e742edefdadd0d61155eb47d870ada7c09f","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","build":"tsc","build:data":"node scripts/build-data.mjs","prepublishOnly":"npm run build:data && npm run build"},"_npmUser":{"name":"iampanthera958","email":"dev.talhaakram@gmail.com"},"repository":{"url":"git+https://github.com/iampanthera/localized-countries-states.git","type":"git"},"_npmVersion":"10.9.2","description":"ISO 3166-1 countries and official ISO 3166-2 states/provinces with localized names in 12 languages.","directories":{"test":"tests"},"sideEffects":false,"_nodeVersion":"22.13.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.4","ts-jest":"^29.4.0","iso-3166":"^4.4.0","typescript":"^5.8.3","@types/jest":"^30.0.0","@types/node":"^26.1.0"},"_npmOperationalInternal":{"tmp":"tmp/localized-countries-states_1.0.2_1783503774578_0.14798322184017776","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"localized-countries-states","version":"1.0.3","keywords":["iso-3166","iso-3166-1","iso-3166-2","countries","states","provinces","subdivisions","localization","i18n","bcp47"],"author":{"name":"iampanthera","email":"dev.talhaakram@gmail.com"},"license":"ISC","_id":"localized-countries-states@1.0.3","maintainers":[{"name":"iampanthera958","email":"dev.talhaakram@gmail.com"}],"homepage":"https://github.com/iampanthera/localized-countries-states#readme","bugs":{"url":"https://github.com/iampanthera/localized-countries-states/issues"},"dist":{"shasum":"ac532ea2cffd72f2171201d1f1b9367ee012e02b","tarball":"https://registry.npmjs.org/localized-countries-states/-/localized-countries-states-1.0.3.tgz","fileCount":18,"integrity":"sha512-Niw3GbBd5eidQGJpUnMGjhgpclYNrHPYVRLO3et8/hO8j5BKeSZV2Z3z8K2Koq1nqGzpz/fuuscLNbymm14r1Q==","signatures":[{"sig":"MEYCIQCv2sLIYW5G06N3V6iOShM1NVqHwA933JrfFmhA0P2GxgIhAN63z3iI4frB0bct0ErA9ZGBn2PpHj/zjLLOjk37Uyh2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1258888},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./compat":{"types":"./dist/compat/index.d.ts","default":"./dist/compat/index.js"}},"gitHead":"36b23d8a358ca6515920e473e7a5a8575dfb86ad","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","build":"tsc","build:data":"node scripts/build-data.mjs","prepublishOnly":"npm run build:data && npm run build"},"_npmUser":{"name":"iampanthera958","email":"dev.talhaakram@gmail.com"},"repository":{"url":"git+https://github.com/iampanthera/localized-countries-states.git","type":"git"},"_npmVersion":"10.9.2","description":"ISO 3166-1 countries and official ISO 3166-2 states/provinces with localized names in 12 languages.","directories":{"test":"tests"},"sideEffects":false,"_nodeVersion":"22.13.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.4","ts-jest":"^29.4.0","iso-3166":"^4.4.0","typescript":"^5.8.3","@types/jest":"^30.0.0","@types/node":"^26.1.0"},"_npmOperationalInternal":{"tmp":"tmp/localized-countries-states_1.0.3_1783588335442_0.5341348775713477","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"localized-countries-states","version":"1.0.5","keywords":["iso-3166","iso-3166-1","iso-3166-2","countries","states","provinces","subdivisions","localization","i18n","bcp47"],"author":{"name":"iampanthera","email":"dev.talhaakram@gmail.com"},"license":"ISC","_id":"localized-countries-states@1.0.5","maintainers":[{"name":"iampanthera958","email":"dev.talhaakram@gmail.com"}],"homepage":"https://github.com/iampanthera/localized-countries-states#readme","bugs":{"url":"https://github.com/iampanthera/localized-countries-states/issues"},"dist":{"shasum":"6edd2ee5405b453a62d8c2450602235ce0428508","tarball":"https://registry.npmjs.org/localized-countries-states/-/localized-countries-states-1.0.5.tgz","fileCount":18,"integrity":"sha512-yeuBULf1LDqTz8wnOfZgsiqw2RyzrJC1koWsNlV5KdrMRUzZJ8PYdSjHz1Cb738eeSh6R5CiXXFuMxeMvUyl3A==","signatures":[{"sig":"MEYCIQDCohd/xbZ8V8yCwMkgEz7zRhygT8o/FvesImR6ZfR2MQIhALlqvP2/cwkQMJ1TeaeDJ4JaneoZwXKAWUxro2ZejJFn","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1258557},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./compat":{"types":"./dist/compat/index.d.ts","default":"./dist/compat/index.js"}},"gitHead":"71da1ed92f0767cafd301d3fa753c7bd3bd3a16a","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","build":"tsc","build:data":"node scripts/build-data.mjs","prepublishOnly":"npm run build:data && npm run build"},"_npmUser":{"name":"iampanthera958","email":"dev.talhaakram@gmail.com"},"repository":{"url":"git+https://github.com/iampanthera/localized-countries-states.git","type":"git"},"_npmVersion":"10.9.2","description":"ISO 3166-1 countries and official ISO 3166-2 states/provinces with localized names in 12 languages.","directories":{"test":"tests"},"sideEffects":false,"_nodeVersion":"22.13.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.4","ts-jest":"^29.4.0","iso-3166":"^4.4.0","typescript":"^5.8.3","@types/jest":"^30.0.0","@types/node":"^26.1.0"},"_npmOperationalInternal":{"tmp":"tmp/localized-countries-states_1.0.5_1783591509807_0.4599325844210771","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"localized-countries-states","version":"1.0.6","keywords":["iso-3166","iso-3166-1","iso-3166-2","countries","states","provinces","subdivisions","localization","i18n","bcp47"],"author":{"name":"iampanthera","email":"dev.talhaakram@gmail.com"},"license":"ISC","_id":"localized-countries-states@1.0.6","maintainers":[{"name":"iampanthera958","email":"dev.talhaakram@gmail.com"}],"homepage":"https://github.com/iampanthera/localized-countries-states#readme","bugs":{"url":"https://github.com/iampanthera/localized-countries-states/issues"},"dist":{"shasum":"6bc9ad471bb832ae850da6187d2968b4cd2afbb9","tarball":"https://registry.npmjs.org/localized-countries-states/-/localized-countries-states-1.0.6.tgz","fileCount":18,"integrity":"sha512-l+FJPZZDqApbr5NCU/RZ88rciRS1t25P4nBVfotyR6xF3UJQAGbuyaiI9F9UKcM8tMqKYc4cVHeck4MFBe6WCQ==","signatures":[{"sig":"MEYCIQDQDntkdA63BaThtmunHZ3DXtauWr6eavWWoT6/yr+4bQIhAOL8Lma1krbnmnB5rPr1kHdsUeqJUneeq+4fz0T9ND8y","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1255130},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./compat":{"types":"./dist/compat/index.d.ts","default":"./dist/compat/index.js"}},"gitHead":"051d5dea9635f1b7271b0faf92f8ee4192ff0587","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","build":"tsc","build:data":"node scripts/build-data.mjs","prepublishOnly":"npm run build:data && npm run build"},"_npmUser":{"name":"iampanthera958","email":"dev.talhaakram@gmail.com"},"repository":{"url":"git+https://github.com/iampanthera/localized-countries-states.git","type":"git"},"_npmVersion":"10.9.2","description":"ISO 3166-1 countries and official ISO 3166-2 states/provinces with localized names in 12 languages.","directories":{"test":"tests"},"sideEffects":false,"_nodeVersion":"22.13.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.4","ts-jest":"^29.4.0","iso-3166":"^4.4.0","typescript":"^5.8.3","@types/jest":"^30.0.0","@types/node":"^26.1.0"},"_npmOperationalInternal":{"tmp":"tmp/localized-countries-states_1.0.6_1784192514342_0.2692983453481319","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"localized-countries-states","version":"1.1.0","keywords":["iso-3166","iso-3166-1","iso-3166-2","countries","states","provinces","subdivisions","localization","i18n","bcp47"],"author":{"name":"iampanthera","email":"dev.talhaakram@gmail.com"},"license":"ISC","_id":"localized-countries-states@1.1.0","maintainers":[{"name":"iampanthera958","email":"dev.talhaakram@gmail.com"}],"homepage":"https://github.com/iampanthera/localized-countries-states#readme","bugs":{"url":"https://github.com/iampanthera/localized-countries-states/issues"},"dist":{"shasum":"7c3bea404f87f66d0626087059ed7078abcd9d74","tarball":"https://registry.npmjs.org/localized-countries-states/-/localized-countries-states-1.1.0.tgz","fileCount":18,"integrity":"sha512-CNK5dZSwC4ziADQEWK31H6FUrce6U7KmQuMzs7jmXr2wC5EqziqqcB1C15gXY7yLZW2m3mG5a8WF8wl42RFDHw==","signatures":[{"sig":"MEUCIQDvkfZg2USBVXBEsBRQxCY4WmLb0axs7iEZcY34c8URrwIgQrukxAQcFW/2vcNwhYVkKPq8/wU5yzxnBU8hzjsGmbw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1239070},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./compat":{"types":"./dist/compat/index.d.ts","default":"./dist/compat/index.js"}},"gitHead":"2253736cf48049502e81607185b02c960e03cebf","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","build":"tsc","build:data":"node scripts/build-data.mjs","prepublishOnly":"npm run build:data && npm run build"},"_npmUser":{"name":"iampanthera958","email":"dev.talhaakram@gmail.com"},"repository":{"url":"git+https://github.com/iampanthera/localized-countries-states.git","type":"git"},"_npmVersion":"10.9.2","description":"ISO 3166-1 countries and official ISO 3166-2 states/provinces with localized names in 12 languages.","directories":{"test":"tests"},"sideEffects":false,"_nodeVersion":"22.13.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.4","ts-jest":"^29.4.0","iso-3166":"^4.4.0","typescript":"^5.8.3","@types/jest":"^30.0.0","@types/node":"^26.1.0"},"_npmOperationalInternal":{"tmp":"tmp/localized-countries-states_1.1.0_1784194965641_0.8739338743259706","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"localized-countries-states","version":"1.2.0","keywords":["iso-3166","iso-3166-1","iso-3166-2","countries","states","provinces","subdivisions","localization","i18n","bcp47"],"author":{"name":"iampanthera","email":"dev.talhaakram@gmail.com"},"license":"ISC","_id":"localized-countries-states@1.2.0","maintainers":[{"name":"iampanthera958","email":"dev.talhaakram@gmail.com"}],"homepage":"https://github.com/iampanthera/localized-countries-states#readme","bugs":{"url":"https://github.com/iampanthera/localized-countries-states/issues"},"dist":{"shasum":"5f7bad6f23ad2c7e3163c7e7aa5f78cbf5aef2fd","tarball":"https://registry.npmjs.org/localized-countries-states/-/localized-countries-states-1.2.0.tgz","fileCount":18,"integrity":"sha512-5DJec8RjOeZncj7O8lEfc+yqD2MJXsBWiHgssG5wEJ16DuT/nVpAQz+Vhbmidzy4Fj+9ztTtGx/HWfvfgon9gQ==","signatures":[{"sig":"MEUCIH9KJ9KxZvAxqksR/pGUFalNtXTQK7jTfV0863WaBolwAiEAyXhdNXS8eCfhUFCBTH1RkkU641V1pNVRTPIqhL7gcjU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":715441},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./compat":{"types":"./dist/compat/index.d.ts","default":"./dist/compat/index.js"}},"gitHead":"494807ef1b29cb50bbdc6ad58f964c5242997028","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","build":"tsc","build:data":"node scripts/build-data.mjs","prepublishOnly":"npm run build:data && npm run build"},"_npmUser":{"name":"iampanthera958","email":"dev.talhaakram@gmail.com"},"repository":{"url":"git+https://github.com/iampanthera/localized-countries-states.git","type":"git"},"_npmVersion":"10.9.2","description":"ISO 3166-1 countries and official ISO 3166-2 states/provinces with localized names in 12 languages.","directories":{"test":"tests"},"sideEffects":false,"_nodeVersion":"22.13.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.4","ts-jest":"^29.4.0","iso-3166":"^4.4.0","typescript":"^5.8.3","@types/jest":"^30.0.0","@types/node":"^26.1.0"},"_npmOperationalInternal":{"tmp":"tmp/localized-countries-states_1.2.0_1784197350577_0.47999563868460604","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"localized-countries-states","version":"2.0.0","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"imports":{"#data":{"types":"./data/bundle.d.ts","import":"./data/bundle.js","require":"./data/bundle.cjs"}},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"build":"tsup","build:data":"node scripts/build-data.mjs","typecheck":"tsc --noEmit && tsc -p tests/tsconfig.json","lint":"eslint .","lint:fix":"eslint . --fix","format":"prettier --write .","format:check":"prettier --check .","check":"npm run typecheck && npm run lint && npm run format:check && npm test","prepublishOnly":"npm run build:data && npm run check && npm run build","test":"node --experimental-vm-modules node_modules/jest/bin/jest.js"},"keywords":["iso-3166","iso-3166-1","iso-3166-2","countries","states","provinces","subdivisions","localization","i18n","bcp47"],"repository":{"type":"git","url":"git+https://github.com/iampanthera/localized-countries-states.git"},"homepage":"https://github.com/iampanthera/localized-countries-states#readme","bugs":{"url":"https://github.com/iampanthera/localized-countries-states/issues"},"author":{"name":"iampanthera","email":"dev.talhaakram@gmail.com"},"license":"ISC","description":"ISO 3166-1 countries and official ISO 3166-2 states/provinces with localized names in 12 languages.","devDependencies":{"@arethetypeswrong/cli":"^0.18.5","@eslint/js":"^10.0.1","@types/jest":"^30.0.0","@types/node":"^26.1.0","eslint":"^10.7.0","eslint-config-prettier":"^10.1.8","iso-3166":"^4.4.0","jest":"^30.0.4","prettier":"^3.9.5","publint":"^0.3.21","ts-jest":"^29.4.0","tsup":"^8.5.1","typescript":"^5.8.3","typescript-eslint":"^8.64.0"},"_id":"localized-countries-states@2.0.0","gitHead":"afde8c4c37652f2de809e78dd25657c53092d7bc","_nodeVersion":"22.13.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-yIgP1nvmLnZi2hW8PoA9X6QtRj6VRuesVx3GMHr3WUXc+elBSZKvNWfZWHkoTpA/nWGr2rbh5jsclcjshrmjJA==","shasum":"8afb58731397a8f5219b8e3c5e00a9f543864499","tarball":"https://registry.npmjs.org/localized-countries-states/-/localized-countries-states-2.0.0.tgz","fileCount":11,"unpackedSize":1177474,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFAcb4pv5O9rbEBlvcD5yUEvCAaSrWw08dMVVpL1JaacAiEA8qshHfDpVud3ZaRY3TAG7ag2GgR/6HlHtdEZuUQYkbg="}]},"_npmUser":{"name":"iampanthera958","email":"dev.talhaakram@gmail.com"},"directories":{},"maintainers":[{"name":"iampanthera958","email":"dev.talhaakram@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/localized-countries-states_2.0.0_1784213030577_0.5829895929240407"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-06T18:28:11.836Z","modified":"2026-07-16T14:43:50.922Z","1.0.0":"2026-07-06T18:28:12.091Z","1.0.1":"2026-07-06T18:42:29.331Z","1.0.2":"2026-07-08T09:42:54.732Z","1.0.3":"2026-07-09T09:12:15.640Z","1.0.5":"2026-07-09T10:05:10.057Z","1.0.6":"2026-07-16T09:01:54.496Z","1.1.0":"2026-07-16T09:42:45.804Z","1.2.0":"2026-07-16T10:22:30.768Z","2.0.0":"2026-07-16T14:43:50.785Z"},"bugs":{"url":"https://github.com/iampanthera/localized-countries-states/issues"},"author":{"name":"iampanthera","email":"dev.talhaakram@gmail.com"},"license":"ISC","homepage":"https://github.com/iampanthera/localized-countries-states#readme","keywords":["iso-3166","iso-3166-1","iso-3166-2","countries","states","provinces","subdivisions","localization","i18n","bcp47"],"repository":{"type":"git","url":"git+https://github.com/iampanthera/localized-countries-states.git"},"description":"ISO 3166-1 countries and official ISO 3166-2 states/provinces with localized names in 12 languages.","maintainers":[{"name":"iampanthera958","email":"dev.talhaakram@gmail.com"}],"readme":"# localized-countries-states\n\nISO 3166-1 countries and official ISO 3166-2 states/provinces with localized names in 12 languages. Works in Node.js (ESM **and** CommonJS), browsers (React, Next.js, Vite), and edge runtimes, with no runtime dependencies, no `fs`, and no network calls.\n\n## Features\n\n- Complete ISO 3166-1 country list (~250 countries/territories)\n- Complete official ISO 3166-2 subdivisions: ~5,070 across 200 countries, keyed by full ISO code (`ES-AN`, `US-CA`)\n- Subdivision names localized in 12 languages: English, Russian, German, French, Spanish, Chinese, Hindi, Portuguese, Japanese, Arabic, Italian, Hebrew\n- Country names in the same 12 languages, with `Intl.DisplayNames` as a runtime fallback for other locales\n- BCP 47 locale parsing, validation, and normalization with a fallback chain\n- Flexible locale handling: set a site-wide default once with `init()`, pass a locale per call, or bind one with `createLocalizedData()`\n\nCountry/subdivision data is generated from MIT-licensed sources; see [NOTICE.md](./NOTICE.md). Regenerate with `npm run build:data`.\n\n## Installation\n\n```sh\nnpm install localized-countries-states\n```\n\n## Usage\n\n```ts\nimport {\n  getAllCountries,\n  getStatesOfCountry,\n  getCountryName,\n  getState,\n} from \"localized-countries-states\";\n\ngetAllCountries(\"fr-FR\");\n// [{ code: 'DE', name: 'Allemagne' }, { code: 'PK', name: 'Pakistan' }, ...]\n\ngetStatesOfCountry(\"US\", \"es-ES\");\n// [{ code: 'US-NY', countryCode: 'US', name: 'Nueva York' }, ...]\n\ngetCountryName(\"DE\", \"fr-FR\"); // \"Allemagne\"\ngetState(\"US\", \"CA\", \"ru\"); // { code: 'US-CA', countryCode: 'US', name: 'Калифорния' }\n```\n\nOmit the locale for English names. Subdivision lookups accept bare (`\"CA\"`) or full (`\"US-CA\"`) codes.\n\nFor a site with one locale, set it once at startup — calls that omit the locale then use it (an explicit per-call locale still wins):\n\n```ts\nimport { init, getAllCountries, getCountryName } from \"localized-countries-states\";\n\ninit(\"fr-FR\");\n\ngetAllCountries(); // French names\ngetCountryName(\"DE\"); // \"Allemagne\"\ngetCountryName(\"DE\", \"es-ES\"); // \"Alemania\" — per-call override\n```\n\nOr bind a locale to an instance (unaffected by `init`, snapshots the default if created without a locale):\n\n```ts\nimport { createLocalizedData } from \"localized-countries-states\";\n\nconst data = createLocalizedData(\"fr-FR\");\ndata.getAllCountries(); // French names\ndata.getStatesOfCountry(\"US\");\ndata.getCountryName(\"DE\"); // \"Allemagne\"\n```\n\nCommonJS works too:\n\n```js\nconst { getAllCountries } = require(\"localized-countries-states\");\n```\n\n## API Reference\n\n### Default locale\n\n- `init(locale?: string): void` — set the site-wide default used when a call omits `locale`; call with no argument to clear it\n\n### Countries\n\n- `getAllCountries(locale?: string): Country[]` — sorted by localized name\n- `getCountry(code: string, locale?: string): Country | undefined`\n- `getCountryName(code: string, locale?: string): string | undefined`\n\n### States / subdivisions\n\n- `getStatesOfCountry(countryCode: string, locale?: string): State[]` — sorted by localized name\n- `getAllStates(locale?: string): State[]` — every subdivision of every country\n- `getState(countryCode: string, stateCode: string, locale?: string): State | undefined`\n- `getStateName(countryCode: string, stateCode: string, locale?: string): string | undefined`\n\n```ts\ninterface Country {\n  code: string; // \"US\"\n  name: string; // localized display name\n}\n\ninterface State {\n  code: string; // full ISO 3166-2 code, \"US-CA\"\n  countryCode: string; // \"US\"\n  name: string; // localized display name\n}\n```\n\nUnknown codes return `undefined` (lookups) or `[]` (lists).\n\n### Locale-bound instance\n\n- `createLocalizedData(locale?: string): LocalizedData` — all of the above with the locale baked in, plus a readonly `locale` property (normalized BCP 47)\n\n### Availability helpers\n\n- `getAvailableCountryLocales(): string[]` — languages the bundled country data covers (e.g. `[\"ru\", \"de\", ...]`)\n- `getAvailableStateLocales(countryCode: string): string[]`\n- `hasLocalizedCountries(locale?: string): boolean`\n- `hasLocalizedStates(countryCode: string, locale?: string): boolean`\n\n### Locale utilities\n\n- `parseLocale(locale: string): LocaleInfo | null`\n- `normalizeLocale(locale: string): string`\n- `getFallbackLocales(locale: string): string[]`\n- `createLocalizer(locale: string, type?: string): Intl.DisplayNames | null`\n- `getLocalizedName(code: string, locale: string, type?: string): string`\n- `isLocaleSupported(locale: string): boolean`\n- `COMMON_LOCALES: readonly string[]`\n\n## Locales and fallback behavior\n\nBundled translations cover 12 languages: `en`, `ru`, `de`, `fr`, `es`, `zh`, `hi`, `pt`, `ja`, `ar`, `it`, `he`. Any region variant of these resolves via the language (`es-MX` → `es`).\n\nName resolution order:\n\n1. Exact locale match in the bundled data (`es-ES`)\n2. Language-only match (`es`)\n3. For country names: `Intl.DisplayNames` (so unbundled locales like `ko` or `tr` still work at runtime)\n4. The English base name\n\nSubdivisions localized upstream are the top-level regions; finer subdivisions (e.g. Spanish provinces) fall back to their canonical name.\n\nResult lists are always sorted by localized name using the locale's collation rules (English collation when no locale is given).\n\n## Migrating from v1\n\nSee [CHANGELOG.md](./CHANGELOG.md). In short: the `country-state-city` compat entry point was removed, name misses return `undefined` instead of `\"\"`, `State` objects now include `countryCode`, and `init()`'s default now applies consistently to both countries and states (with no default set, everything is English).\n\n## Development\n\n```sh\nnpm test          # jest (core + build-pipeline unit tests)\nnpm run check     # typecheck + lint + format + tests\nnpm run build     # dual ESM/CJS build via tsup\nnpm run build:data # regenerate data/bundle.* from sources\n```\n\n## License\n\nPackage code: ISC. Bundled country/subdivision data is generated from MIT-licensed sources (`iso-3166` and `esosedi/3166`); see [NOTICE.md](./NOTICE.md) for full attribution.\n","readmeFilename":"README.md"}