{"_id":"@countrystatecity/countries-browser","_rev":"8-93a43f2fd0bbeb0225e172edad87a062","name":"@countrystatecity/countries-browser","dist-tags":{"latest":"3.0.1"},"versions":{"1.0.0":{"name":"@countrystatecity/countries-browser","version":"1.0.0","keywords":["country-state-city","countries","states","cities","browser","frontend","react","vue","svelte","vite","cdn","jsdelivr","lazy-loading","typescript"],"author":{"name":"dr5hn"},"license":"ODbL-1.0","_id":"@countrystatecity/countries-browser@1.0.0","maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"homepage":"https://github.com/dr5hn/countrystatecity-countries-browser#readme","bugs":{"url":"https://github.com/dr5hn/countrystatecity-countries-browser/issues"},"dist":{"shasum":"aae2dfecd45ebaf7280e96e6cff4d00a2d62101e","tarball":"https://registry.npmjs.org/@countrystatecity/countries-browser/-/countries-browser-1.0.0.tgz","fileCount":4562,"integrity":"sha512-y/SkPV4E6uoOYcpVcKfvSzl/8sYJ6jNYL/UazLXF+eDLfXarGMtVBjR+cKU9jzT9UxtyDDz5ZyiIXwuJUcy8mA==","signatures":[{"sig":"MEQCIG3V5OPq2FXCVMfguitBjU3NaJ+T+UxiFArlXiCqTG1EAiAWLFWDvA97omtMJsij8D0eGG8XM7WaAOjkcAQ7/hOpHg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46497447},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./data/*":"./dist/data/*"},"gitHead":"e9220b541068e78ba7578aefa164ecfdd41fadf6","scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest","generate-data":"node scripts/generate-data.cjs"},"_npmUser":{"name":"dr5hn","email":"gadadarshan@gmail.com"},"repository":{"url":"git+https://github.com/dr5hn/countrystatecity-countries-browser.git","type":"git"},"_npmVersion":"10.8.2","description":"Browser-native countries, states, and cities data with jsDelivr CDN and lazy loading","directories":{},"_nodeVersion":"20.20.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.16","typescript":"^5.9.3","@types/node":"^20.19.19"},"_npmOperationalInternal":{"tmp":"tmp/countries-browser_1.0.0_1774688944825_0.34075579767575603","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@countrystatecity/countries-browser","version":"1.0.1","keywords":["country-state-city","countries","states","cities","browser","frontend","react","vue","svelte","vite","cdn","jsdelivr","lazy-loading","typescript"],"author":{"name":"dr5hn"},"license":"ODbL-1.0","_id":"@countrystatecity/countries-browser@1.0.1","maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"homepage":"https://github.com/dr5hn/countrystatecity-countries-browser#readme","bugs":{"url":"https://github.com/dr5hn/countrystatecity-countries-browser/issues"},"dist":{"shasum":"7bb1eaeb310cdad57f6cceff2781ddcd8d58568b","tarball":"https://registry.npmjs.org/@countrystatecity/countries-browser/-/countries-browser-1.0.1.tgz","fileCount":4747,"integrity":"sha512-Jp1jmqqrT0exFiCd5f+Sd3SfgdK+ApqozQCJLnaU/xByHArDJCR0jepuwkP/g3Xss7cW4vpYEWRsuPoEI1jVsA==","signatures":[{"sig":"MEUCIQCY+eWAIMOVOb8P6PgUJBitX3wC+MzSEXTjoR9IpKWq9AIgEGkIjZLcVfmUFoUsBe9b1nW6IirEXEcZXNK2f0TtLZY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47187037},"main":"./dist/index.cjs","type":"module","_from":"file:countrystatecity-countries-browser-1.0.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./data/*":"./dist/data/*"},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest","generate-data":"node scripts/generate-data.cjs"},"_npmUser":{"name":"dr5hn","email":"gadadarshan@gmail.com"},"_resolved":"/tmp/65fe877d556de62e67e65669bf722fdc/countrystatecity-countries-browser-1.0.1.tgz","_integrity":"sha512-Jp1jmqqrT0exFiCd5f+Sd3SfgdK+ApqozQCJLnaU/xByHArDJCR0jepuwkP/g3Xss7cW4vpYEWRsuPoEI1jVsA==","repository":{"url":"git+https://github.com/dr5hn/countrystatecity-countries-browser.git","type":"git"},"_npmVersion":"10.8.2","description":"Browser-native countries, states, and cities data with jsDelivr CDN and lazy loading","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.16","typescript":"^5.9.3","@types/node":"^20.19.19"},"_npmOperationalInternal":{"tmp":"tmp/countries-browser_1.0.1_1781168794517_0.48845892137829927","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@countrystatecity/countries-browser","version":"1.0.2","keywords":["country-state-city","countries","states","cities","browser","frontend","react","vue","svelte","vite","cdn","jsdelivr","lazy-loading","typescript"],"author":{"name":"dr5hn"},"license":"ODbL-1.0","_id":"@countrystatecity/countries-browser@1.0.2","maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"homepage":"https://github.com/dr5hn/countrystatecity-npm/tree/main/packages/countries-browser#readme","bugs":{"url":"https://github.com/dr5hn/countrystatecity-npm/issues"},"dist":{"shasum":"0209433d1305b2e05d6095d8ccdfe1debcd651eb","tarball":"https://registry.npmjs.org/@countrystatecity/countries-browser/-/countries-browser-1.0.2.tgz","fileCount":4747,"integrity":"sha512-VnGEZa4SF4KLPy9YcIM9t2pYEKOhIZtq392tIFg//HLdI9fBqgprBUz30A6ONQrF2q0OjFkVJ6v70nwKEegaYw==","signatures":[{"sig":"MEUCIQCqD2z6NByQMNrNnki8pTj/f22m8Kh3FzvCMD38TcTeewIgMExKhKVHYW8PDP1WkMW4ozut2KaCDzRwOUsqmQA1OpM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47187013},"main":"./dist/index.cjs","type":"module","_from":"file:countrystatecity-countries-browser-1.0.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./data/*":"./dist/data/*"},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest","generate-data":"node scripts/generate-data.cjs"},"_npmUser":{"name":"dr5hn","email":"gadadarshan@gmail.com"},"_resolved":"/tmp/9f6deb72824f90ea44dc41b74ac1b725/countrystatecity-countries-browser-1.0.2.tgz","_integrity":"sha512-VnGEZa4SF4KLPy9YcIM9t2pYEKOhIZtq392tIFg//HLdI9fBqgprBUz30A6ONQrF2q0OjFkVJ6v70nwKEegaYw==","repository":{"url":"git+https://github.com/dr5hn/countrystatecity-npm.git","type":"git"},"_npmVersion":"10.8.2","description":"Browser-native countries, states, and cities data with jsDelivr CDN and lazy loading","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.16","typescript":"^5.9.3","@types/node":"^20.19.19"},"_npmOperationalInternal":{"tmp":"tmp/countries-browser_1.0.2_1781173085963_0.573001452346066","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@countrystatecity/countries-browser","version":"1.0.3","keywords":["country-state-city","countries","states","cities","browser","frontend","react","vue","svelte","vite","cdn","jsdelivr","lazy-loading","typescript"],"author":{"name":"dr5hn"},"license":"ODbL-1.0","_id":"@countrystatecity/countries-browser@1.0.3","maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"homepage":"https://github.com/dr5hn/countrystatecity-npm/tree/main/packages/countries-browser#readme","bugs":{"url":"https://github.com/dr5hn/countrystatecity-npm/issues"},"dist":{"shasum":"a22431f0eb8394d2b041e61282bcb658a3425d02","tarball":"https://registry.npmjs.org/@countrystatecity/countries-browser/-/countries-browser-1.0.3.tgz","fileCount":4747,"integrity":"sha512-okSjv8qWKS29dOCBqCbPisCDyVt2mbxUqeAwTpS0DrqfyUpa3o8C9lpzN7NMLBpJrvtq/mhfDpjObLWE3+Mj1g==","signatures":[{"sig":"MEYCIQCosj+LSCPjlDovLu5aAuHciyq3S9QP8B2wD0WJJ5i1AwIhALDcG0jbp2EMzQ/juRZIAQly9hTFYATm1rztEdL55w2N","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46298839},"main":"./dist/index.cjs","type":"module","_from":"file:countrystatecity-countries-browser-1.0.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./data/*":"./dist/data/*"},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest","generate-data":"node scripts/generate-data.cjs"},"_npmUser":{"name":"dr5hn","email":"gadadarshan@gmail.com"},"_resolved":"/tmp/b8538747affbe9adfcfb76eed121523c/countrystatecity-countries-browser-1.0.3.tgz","_integrity":"sha512-okSjv8qWKS29dOCBqCbPisCDyVt2mbxUqeAwTpS0DrqfyUpa3o8C9lpzN7NMLBpJrvtq/mhfDpjObLWE3+Mj1g==","repository":{"url":"git+https://github.com/dr5hn/countrystatecity-npm.git","type":"git"},"_npmVersion":"10.8.2","description":"Browser-native countries, states, and cities data with jsDelivr CDN and lazy loading","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.16","typescript":"^5.9.3","@types/node":"^20.19.19"},"_npmOperationalInternal":{"tmp":"tmp/countries-browser_1.0.3_1786169488171_0.46606161795279477","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@countrystatecity/countries-browser","version":"1.0.4","keywords":["country-state-city","countries","states","cities","browser","frontend","react","vue","svelte","vite","cdn","jsdelivr","lazy-loading","typescript"],"author":{"name":"dr5hn"},"license":"ODbL-1.0","_id":"@countrystatecity/countries-browser@1.0.4","maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"homepage":"https://github.com/dr5hn/countrystatecity-npm/tree/main/packages/countries-browser#readme","bugs":{"url":"https://github.com/dr5hn/countrystatecity-npm/issues"},"dist":{"shasum":"7eb621c84d6a33d6ba4765cf65c37528bb420727","tarball":"https://registry.npmjs.org/@countrystatecity/countries-browser/-/countries-browser-1.0.4.tgz","fileCount":4749,"integrity":"sha512-6V/TKWFTK2IJAY4bj1vku92v5mtrCvJXt9cvc1VdRnpSvqmV0zPfb/0YAR+CMU+9hnCzpVr0R/s3Z0UDfYDMXw==","signatures":[{"sig":"MEUCIQDhYGMJFOxekRGdnMl3rbDnikVzB5UK0fsrsDWIgkBOrwIgYDnwS3svVHvZ3zrhA263BN/aaNPW6CqvDPC8HrzGYsY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46506640},"main":"./dist/index.cjs","type":"module","_from":"file:countrystatecity-countries-browser-1.0.4.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./data/*":"./dist/data/*"},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest","generate-data":"node scripts/generate-data.cjs"},"_npmUser":{"name":"dr5hn","email":"gadadarshan@gmail.com"},"_resolved":"/tmp/4073fe004c3536d5bb921e1b335757ae/countrystatecity-countries-browser-1.0.4.tgz","_integrity":"sha512-6V/TKWFTK2IJAY4bj1vku92v5mtrCvJXt9cvc1VdRnpSvqmV0zPfb/0YAR+CMU+9hnCzpVr0R/s3Z0UDfYDMXw==","repository":{"url":"git+https://github.com/dr5hn/countrystatecity-npm.git","type":"git"},"_npmVersion":"10.8.2","description":"Browser-native countries, states, and cities data with jsDelivr CDN and lazy loading","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.16","typescript":"^5.9.3","@types/node":"^20.19.19"},"_npmOperationalInternal":{"tmp":"tmp/countries-browser_1.0.4_1786188771828_0.46940261086632673","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@countrystatecity/countries-browser","version":"2.0.0","keywords":["country-state-city","countries","states","cities","browser","frontend","react","vue","svelte","vite","cdn","jsdelivr","lazy-loading","typescript"],"author":{"name":"dr5hn"},"license":"ODbL-1.0","_id":"@countrystatecity/countries-browser@2.0.0","maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"homepage":"https://github.com/dr5hn/countrystatecity-npm/tree/main/packages/countries-browser#readme","bugs":{"url":"https://github.com/dr5hn/countrystatecity-npm/issues"},"dist":{"shasum":"0ffa597472f2dcd3d5cdde856b5b8f4b079fc260","tarball":"https://registry.npmjs.org/@countrystatecity/countries-browser/-/countries-browser-2.0.0.tgz","fileCount":5211,"integrity":"sha512-nnXzuYOXvajNHU4yKyAZvSp+hDO84AL3oFq39f1DDAyIPMGZtSDhNzbCvMARPUq0zj4T3olJ2SEtBxzRbHpRdA==","signatures":[{"sig":"MEUCIQD0lQm1wOk74oFmb5VPE9tEyHwAVRdnQlqyMyL9FR1koQIgXEYXQ5cdeE38tajXbSDgo/bD6M2DJdLRdzyF0c7O+nY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIBljxpV8RXRT1YKM5B69Rs5yqwEhiEDXnEi8j1VmGpZ7AiAkRkMS6CAZLGr6JirQhZgPhBX5AR0Bm430jVJkdcafaw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":59444073},"main":"./dist/index.cjs","type":"module","_from":"file:countrystatecity-countries-browser-2.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./data/*":"./dist/data/*"},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest","generate-data":"node scripts/generate-data.cjs"},"_npmUser":{"name":"dr5hn","email":"gadadarshan@gmail.com"},"_resolved":"/tmp/69430ecd8d3fe3427c2bbfabe2296451/countrystatecity-countries-browser-2.0.0.tgz","_integrity":"sha512-nnXzuYOXvajNHU4yKyAZvSp+hDO84AL3oFq39f1DDAyIPMGZtSDhNzbCvMARPUq0zj4T3olJ2SEtBxzRbHpRdA==","repository":{"url":"git+https://github.com/dr5hn/countrystatecity-npm.git","type":"git"},"_npmVersion":"10.8.2","description":"Browser-native countries, states, and cities data with jsDelivr CDN and lazy loading","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.16","typescript":"^5.9.3","@types/node":"^20.19.19"},"_npmOperationalInternal":{"tmp":"tmp/countries-browser_2.0.0_1791887953690_0.9407312721067704","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@countrystatecity/countries-browser","version":"3.0.0","keywords":["country-state-city","countries","states","cities","browser","frontend","react","vue","svelte","vite","cdn","jsdelivr","lazy-loading","typescript"],"author":"dr5hn","license":"ODbL-1.0","_id":"@countrystatecity/countries-browser@3.0.0","maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"homepage":"https://github.com/dr5hn/countrystatecity-npm/tree/main/packages/countries-browser#readme","bugs":{"url":"https://github.com/dr5hn/countrystatecity-npm/issues"},"dist":{"shasum":"4a5f32d76c54ae75592a0be7b2a05ff0534b5a87","tarball":"https://registry.npmjs.org/@countrystatecity/countries-browser/-/countries-browser-3.0.0.tgz","fileCount":5248,"integrity":"sha512-pKYDLzG+LIYPkOahmrti5fIj6edoRx62FpXyZYNM1lKVxUdG3vhHo8AHMakXrsH/TiNFyJ/1mfTvBHyn5GrbOQ==","signatures":[{"sig":"MEYCIQDksKjSv9acjmhM0Z8gZSJaIE8iQUU6vzmBmVQQovzEmAIhAK8g8U3zJVHkXZ6xbQCdBVGIsbsomEohUQPw5SCDOuxE","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIC9xuZJnHrhmOYyLJtNIBySHscmyGNYAUwvMZGGdyaLmAiEAsa1yKOhVoFZpZPyLHVwvIuK7dFYSJJtKPML5EtwFUrA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":64010315},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./data/*":"./dist/data/*"},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest","generate-data":"node scripts/generate-data.cjs"},"_npmUser":{"name":"dr5hn","email":"gadadarshan@gmail.com"},"overrides":{"esbuild":"0.28.2"},"repository":{"url":"git+https://github.com/dr5hn/countrystatecity-npm.git","type":"git"},"description":"Browser-native countries, states, and cities data with jsDelivr CDN and lazy loading","directories":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.1.12","typescript":"^6.0.3","@types/node":"^26.6.6"},"_npmOperationalInternal":{"tmp":"tmp/countries-browser_3.0.0_1793274629926_0.5688170545765197","host":"s3://npm-registry-packages-npm-production"}},"3.0.1":{"_id":"@countrystatecity/countries-browser@3.0.1","bugs":{"url":"https://github.com/dr5hn/countrystatecity-npm/issues"},"dist":{"shasum":"b44451edfcf0eee9cc5729afccadc740beb21994","tarball":"https://registry.npmjs.org/@countrystatecity/countries-browser/-/countries-browser-3.0.1.tgz","fileCount":5248,"integrity":"sha512-u10LYAR1Mqkn3f1vyI0B/LFToksIZ1fvuIoZpKFtVzAysg1v1LyrVayeJ/M35YzizRczb0CfCbvJO9TPG6fzLw==","signatures":[{"sig":"MEUCIQDl5WR/CaXkR2WWRjmkkMJq1N9T6PFfkf86SL4CIxtGoAIgYaA1aU0B/awUr04W0ilaZLHVnhiWL7oCDb+N25jO+kA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBQWNgVeYk10YdLtOp1D8P6aP/LOcjdAOBZk4YKo7LchAiA7iJ7owRkuXNEyBOUZ8MUvOuJ7UedorzFraKbGXSVO4g=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@countrystatecity%2fcountries-browser@3.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":65664554},"main":"./dist/index.cjs","name":"@countrystatecity/countries-browser","type":"module","_from":"file:countrystatecity-countries-browser-3.0.1.tgz","types":"./dist/index.d.ts","author":{"name":"dr5hn"},"module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./data/*":"./dist/data/*"},"license":"ODbL-1.0","scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest","generate-data":"node scripts/generate-data.cjs"},"version":"3.0.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"d63c5793-a76a-43cb-99c5-e78b59bd9d09"}},"homepage":"https://github.com/dr5hn/countrystatecity-npm/tree/main/packages/countries-browser#readme","keywords":["country-state-city","countries","states","cities","browser","frontend","react","vue","svelte","vite","cdn","jsdelivr","lazy-loading","typescript"],"_resolved":"/home/runner/work/countrystatecity-npm/countrystatecity-npm/release-packages/countrystatecity-countries-browser-3.0.1.tgz","overrides":{"esbuild":"0.28.2"},"_integrity":"sha512-u10LYAR1Mqkn3f1vyI0B/LFToksIZ1fvuIoZpKFtVzAysg1v1LyrVayeJ/M35YzizRczb0CfCbvJO9TPG6fzLw==","repository":{"url":"git+https://github.com/dr5hn/countrystatecity-npm.git","type":"git"},"_npmVersion":"11.20.0","description":"Browser-native countries, states, and cities data with jsDelivr CDN and lazy loading","directories":{},"maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"_nodeVersion":"26.12.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.1.12","typescript":"^6.0.3","@types/node":"^26.6.6"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/countries-browser_3.0.1_1793715552165_0.14477239990719382"}}},"time":{"created":"2026-03-28T09:09:04.703Z","modified":"2026-11-03T14:19:12.956Z","1.0.0":"2026-03-28T09:09:05.192Z","1.0.1":"2026-06-11T09:06:34.907Z","1.0.2":"2026-06-11T10:18:06.286Z","1.0.3":"2026-08-08T06:11:28.415Z","1.0.4":"2026-08-08T11:32:52.097Z","2.0.0":"2026-10-13T10:39:13.997Z","3.0.0":"2026-10-29T11:50:30.138Z","3.0.1":"2026-11-03T14:19:12.555Z"},"bugs":{"url":"https://github.com/dr5hn/countrystatecity-npm/issues"},"author":{"name":"dr5hn"},"license":"ODbL-1.0","homepage":"https://github.com/dr5hn/countrystatecity-npm/tree/main/packages/countries-browser#readme","keywords":["country-state-city","countries","states","cities","browser","frontend","react","vue","svelte","vite","cdn","jsdelivr","lazy-loading","typescript"],"repository":{"url":"git+https://github.com/dr5hn/countrystatecity-npm.git","type":"git"},"description":"Browser-native countries, states, and cities data with jsDelivr CDN and lazy loading","maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"readme":"# @countrystatecity/countries-browser\n\n[![npm](https://img.shields.io/npm/v/@countrystatecity/countries-browser)](https://www.npmjs.com/package/@countrystatecity/countries-browser)\n[![CI](https://github.com/dr5hn/countrystatecity-npm/workflows/Pipeline/badge.svg)](https://github.com/dr5hn/countrystatecity-npm/actions/workflows/ci.yml)\n[![npm downloads](https://img.shields.io/npm/dm/@countrystatecity/countries-browser?label=countries-browser)](https://www.npmjs.com/package/@countrystatecity/countries-browser)\n[![npm downloads](https://img.shields.io/npm/dw/@countrystatecity/countries-browser?label=countries-browser)](https://www.npmjs.com/package/@countrystatecity/countries-browser)\n\nBrowser-native countries, states, and cities data with jsDelivr CDN and lazy loading. Same API as the server package — works in React, Vue, Svelte, Vite, and any browser environment.\n\n**Environment:** 🌐 **Browser-native** (React, Vue, Svelte, Vite, and any browser environment)\n\n## Upgrading to 3.0.0\n\nThis version uses **v5.2.0-export.1**. Review the [upstream v5 migration notes](https://github.com/dr5hn/countries-states-cities-database/releases/tag/v5.0.0) before updating stored IDs: some records were retired or had their identities repaired. City state links can now be null. Country-wide city loaders include these records. Preserve the supplied `NOTICE-*.txt` files with redistributed data. See the [package migration guide](https://github.com/dr5hn/countrystatecity-npm/blob/main/MIGRATING-V5.md).\n\n## Earlier migration: 2.0.0\n\nData now comes from upstream **v4.0-export.50**. The v3.2 → v4.0 transition removed 4,486 city ids (duplicates, US counties moved to a separate counties dataset, and non-places), reassigned 7,527 cities to different states, and added 27 states while retiring 6. Stored ids and per-state results can change; US counties are no longer returned as cities. Later export corrections are included in this snapshot.\n\nBefore upgrading stored city/state ids, use [`removed_ids_v3.2_to_v4.0.csv`](https://github.com/dr5hn/countries-states-cities-database/releases/download/v4.0/removed_ids_v3.2_to_v4.0.csv) attached to the [upstream v4.0 release](https://github.com/dr5hn/countries-states-cities-database/releases/tag/v4.0). It identifies merged ids and their survivors, counties moved to new ids, and retired states and their successors. Match the `record`, `outcome`, and `new_table` columns before using `new_id`; a county id is not a city id. Refresh stored state associations against this snapshot.\n\nCity `type` uses standard terms (`municipality`, `city`, `town`, `village`, `locality`, `section`) for migrated countries; other countries can retain earlier terms such as `adm1`/`adm2`. This package intentionally projects a subset of upstream fields: `type_local`, `county_id`, `level`, and `parent_id` are omitted from city/state records, and no counties dataset is shipped. City translations remain empty objects; country translations are included. Use upstream exports when you need official local terms, county links, or hierarchy traversal.\n\n## ✨ Features\n\n- 🌍 **Complete Data**: 250+ countries, 5,000+ states, 150,000+ cities\n- 🌐 **Browser-Native**: Runs directly in any browser via fetch and jsDelivr CDN\n- 🚀 **Minimal Bundle**: <10KB initial load, lazy-load everything else\n- 🔄 **Lazy Loading**: On-demand fetching — load only what you need\n- 🌐 **Translations**: 18+ languages supported\n- ⏰ **Timezone Data**: Full timezone information per location\n- 📝 **TypeScript**: Full type definitions included\n- 🔧 **Configurable**: Optional CDN override and cache tuning\n\n## 📦 Installation\n\n```bash\nnpm install @countrystatecity/countries-browser\n# or\nyarn add @countrystatecity/countries-browser\n# or\npnpm add @countrystatecity/countries-browser\n```\n\n## 🚀 Quick Start\n\n```typescript\nimport { getCountries, getStatesOfCountry, getCitiesOfState } from '@countrystatecity/countries-browser';\n\n// Load all countries (~30KB gzipped)\nconst countries = await getCountries();\nconsole.log(countries[0]);\n// { id: 1, name: \"United States\", iso2: \"US\", emoji: \"🇺🇸\", ... }\n\n// Load states for a country (on-demand)\nconst states = await getStatesOfCountry('US');\nconsole.log(states[0]);\n// { id: 1, name: \"California\", iso2: \"CA\", ... }\n\n// Load cities for a state (on-demand)\nconst cities = await getCitiesOfState('US', 'CA');\nconsole.log(cities[0]);\n// { id: 1, name: \"Los Angeles\", latitude: \"34.05\", ... }\n```\n\n## Local package or live API?\n\nThis package ships a free, CDN-hosted snapshot of the data — that's still the right choice when the app must work offline-first, a periodic snapshot is enough, or you just need simple lookups/dropdowns.\n\nThe [CountryStateCity API](https://countrystatecity.in) is worth adding alongside it when you need:\n- **Freshness** — data that updates without publishing a new package version.\n- **Search** — fuzzy, typo-tolerant, server-side search (`csc.search.fuzzy(...)`), not just exact-match local lookups.\n- **Scale & support** — configurable rate limits and support beyond a bundled snapshot.\n\n**Start free with 3,000 requests per month.** [Compare plans](https://countrystatecity.in/pricing?source=npm&campaign=sdk_api_migration&package=countries-browser) or [get an API key](https://app.countrystatecity.in?source=npm&campaign=sdk_api_migration&package=countries-browser).\n\n```bash\nnpm install @countrystatecity/sdk\n```\n\n```typescript\n// Before\nimport { getCountries, getStatesOfCountry, getCitiesOfState } from '@countrystatecity/countries-browser';\n\nconst countries = await getCountries();\nconst states = await getStatesOfCountry('US');\nconst cities = await getCitiesOfState('US', 'CA');\n```\n\n```typescript\n// After\nimport { createCSCClient } from '@countrystatecity/sdk';\n\nconst csc = createCSCClient({ apiKey: process.env.CSC_API_KEY! });\n\nconst { data: countries } = await csc.countries.list();\nconst { data: states } = await csc.states.list({ country: 'US' });\nconst { data: cities } = await csc.cities.list({ country: 'US', state: 'CA' });\n```\n\nSee the [full migration guide](https://github.com/dr5hn/countrystatecity-npm/blob/main/packages/sdk/MIGRATION.md) for error handling, retries, and more.\n\n## 📖 API Reference\n\n### Core Functions\n\n#### `getCountries()`\nGet lightweight list of all countries (basic info only).\n- **Returns:** `Promise<ICountry[]>`\n\n#### `getCountryByCode(code: string)`\nGet full country metadata including timezones and translations.\n- **Parameters:** `code` - ISO2 code (e.g., 'US')\n- **Returns:** `Promise<ICountryMeta | null>`\n\n#### `getStatesOfCountry(countryCode: string)`\nGet all states/provinces for a country.\n- **Parameters:** `countryCode` - ISO2 code\n- **Returns:** `Promise<IState[]>`\n\n#### `getStateByCode(countryCode: string, stateCode: string)`\nGet specific state details.\n- **Parameters:** `countryCode`, `stateCode`\n- **Returns:** `Promise<IState | null>`\n\n#### `getCitiesOfState(countryCode: string, stateCode: string)`\nGet all cities in a specific state.\n- **Parameters:** `countryCode`, `stateCode`\n- **Returns:** `Promise<ICity[]>`\n\n#### `getCityById(countryCode: string, stateCode: string, cityId: number)`\nGet a specific city by its numeric ID.\n- **Parameters:** `countryCode`, `stateCode`, `cityId`\n- **Returns:** `Promise<ICity | null>`\n\n#### `getAllCitiesOfCountry(countryCode: string)`\nGet ALL cities in an entire country.\n- **Warning:** Large data size, use sparingly\n- **Returns:** `Promise<ICity[]>`\n\n#### `getAllCitiesInWorld()`\nGet every city globally.\n- **Warning:** MASSIVE data (8MB+), rarely needed\n- **Returns:** `Promise<ICity[]>`\n\n#### `getRegions()`\nGet list of all regions (continents).\n- **Returns:** `Promise<IRegion[]>`\n\n#### `getSubregions()`\nGet list of all subregions.\n- **Returns:** `Promise<ISubregion[]>`\n\n### Utility Functions\n\n#### `isValidCountryCode(code: string)`\nCheck if country code exists.\n- **Returns:** `Promise<boolean>`\n\n#### `isValidStateCode(countryCode: string, stateCode: string)`\nCheck if state code exists in a country.\n- **Returns:** `Promise<boolean>`\n\n#### `searchCitiesByName(countryCode: string, stateCode: string, term: string)`\nSearch cities by partial name match.\n- **Returns:** `Promise<ICity[]>`\n\n#### `getCountryNameByCode(code: string)`\nGet country name from code.\n- **Returns:** `Promise<string | null>`\n\n#### `getStateNameByCode(countryCode: string, stateCode: string)`\nGet state name from code.\n- **Returns:** `Promise<string | null>`\n\n#### `getTimezoneForCity(countryCode: string, stateCode: string, cityName: string)`\nGet timezone for specific city.\n- **Returns:** `Promise<string | null>`\n\n#### `getCountryTimezones(countryCode: string)`\nGet all timezones for a country.\n- **Returns:** `Promise<string[]>`\n\n#### `getSubregionsOfRegion(regionId: number)`\nGet all subregions belonging to a region.\n- **Returns:** `Promise<ISubregion[]>`\n\n#### `getCountriesByRegion(region: string | number)`\nGet all countries in a region, by name (case-insensitive, e.g. `'Europe'`) or region ID.\n- **Returns:** `Promise<ICountry[]>`\n\n#### `getCountriesBySubregion(subregion: string | number)`\nGet all countries in a subregion, by name (case-insensitive, e.g. `'South America'`) or subregion ID.\n- **Returns:** `Promise<ICountry[]>`\n\n### Configuration\n\n```typescript\nimport { configure, resetConfiguration, clearCache } from '@countrystatecity/countries-browser';\n\n// Self-host data instead of jsDelivr\nconfigure({\n  baseURL: 'https://my-cdn.com/data',\n  timeout: 10000,\n  cacheSize: 100,\n});\n\n// Reset to defaults\nresetConfiguration();\n\n// Clear in-memory cache\nclearCache();\n```\n\n### React Example\n\n```tsx\nimport { useState, useEffect } from 'react';\nimport { getCountries, getStatesOfCountry, getCitiesOfState } from '@countrystatecity/countries-browser';\nimport type { ICountry, IState, ICity } from '@countrystatecity/countries-browser';\n\nexport function LocationSelector() {\n  const [countries, setCountries] = useState<ICountry[]>([]);\n  const [states, setStates] = useState<IState[]>([]);\n  const [cities, setCities] = useState<ICity[]>([]);\n  const [selectedCountry, setSelectedCountry] = useState('');\n  const [selectedState, setSelectedState] = useState('');\n\n  useEffect(() => {\n    getCountries().then(setCountries);\n  }, []);\n\n  useEffect(() => {\n    if (!selectedCountry) { setStates([]); return; }\n    getStatesOfCountry(selectedCountry).then(setStates);\n  }, [selectedCountry]);\n\n  useEffect(() => {\n    if (!selectedCountry || !selectedState) { setCities([]); return; }\n    getCitiesOfState(selectedCountry, selectedState).then(setCities);\n  }, [selectedCountry, selectedState]);\n\n  return (\n    <div>\n      <select value={selectedCountry} onChange={(e) => { setSelectedCountry(e.target.value); setSelectedState(''); }}>\n        <option value=\"\">Select Country</option>\n        {countries.map(c => <option key={c.iso2} value={c.iso2}>{c.name}</option>)}\n      </select>\n      <select value={selectedState} onChange={(e) => setSelectedState(e.target.value)} disabled={!selectedCountry}>\n        <option value=\"\">Select State</option>\n        {states.map(s => <option key={s.iso2} value={s.iso2}>{s.name}</option>)}\n      </select>\n      <select disabled={!selectedState}>\n        <option value=\"\">Select City</option>\n        {cities.map(c => <option key={c.id} value={c.id}>{c.name}</option>)}\n      </select>\n    </div>\n  );\n}\n```\n\n### Error Handling\n\n```typescript\nimport { getCountries, NetworkError } from '@countrystatecity/countries-browser';\n\ntry {\n  const countries = await getCountries();\n} catch (error) {\n  if (error instanceof NetworkError) {\n    console.error(`CDN request failed: ${error.statusCode} at ${error.url}`);\n  }\n}\n```\n\nInvalid codes return `null` or `[]` gracefully — no exceptions thrown.\n\n## 🔧 TypeScript Types\n\n```typescript\nimport type { ICountry, ICountryMeta, IState, ICity, IRegion, ISubregion, ITimezone } from '@countrystatecity/countries-browser';\n```\n\n## 📊 Bundle Size\n\n| Action | Bundle Size |\n|--------|-------------|\n| Install & import | ~5KB |\n| Load countries | ~30KB gzipped |\n| Load US states | ~30KB |\n| Load CA cities | ~15KB |\n| **Typical usage** | **~50KB** |\n\n### Server vs Browser Comparison\n\n| | `@countrystatecity/countries` (server) | `@countrystatecity/countries-browser` |\n|---|---|---|\n| Environment | Node.js only | Browser + Node.js |\n| Data loading | `fs.readFileSync` | `fetch()` from CDN |\n| Initial bundle | ~5KB | ~5KB |\n| Configuration | None needed | Optional CDN override |\n| Lazy loading | Yes | Yes |\n\n## 🧪 Testing\n\n```bash\n# Run all tests\nnpm test\n\n# Watch mode\nnpm run test:watch\n```\n\nAll packages include comprehensive tests:\n- ✅ Unit tests\n- ✅ Integration tests\n- ✅ iOS/Safari compatibility tests\n\n## 🔄 CI/CD & Automation\n\n### Continuous Integration\nEvery push and PR automatically:\n- ✅ Runs type checking\n- ✅ Executes comprehensive tests\n- ✅ Builds the package\n- ✅ Validates bundle sizes\n- ✅ Tests iOS/Safari compatibility\n\n### Automated Publishing\nAutomated publishing to NPM on version changes:\n- 🔍 Detects version bumps in package.json\n- 📦 Builds and tests before publishing\n- 🚀 Publishes to NPM registry\n- 🏷️ Creates GitHub release with changelog\n\n## 📄 License\n\n[ODbL-1.0](LICENSE) © [dr5hn](https://github.com/dr5hn)\n\nThis package and its data are licensed under the Open Database License (ODbL) v1.0. The data is sourced from the [Countries States Cities Database](https://github.com/dr5hn/countries-states-cities-database) which is also licensed under ODbL-1.0.\n\nYou are free to share, create, and adapt this database as long as you attribute the original sources, distribute adaptations under the same license, and don't use technical restrictions to lock down the data.\n\n## 🤝 Contributing\n\nContributions are welcome! Please open an issue or PR.\n\n**For data-related issues** (incorrect country names, missing cities, wrong coordinates, etc.), please report them to the [Countries States Cities Database](https://github.com/dr5hn/countries-states-cities-database/issues) repository, which is the source of data for this package.\n\n## 📦 Package Ecosystem\n\nThis package is part of the [@countrystatecity package ecosystem](https://github.com/dr5hn/countrystatecity-npm):\n\n- **[@countrystatecity/countries](https://www.npmjs.com/package/@countrystatecity/countries)** — Server-side countries, states, and cities database. Environment: Node.js, Next.js API routes, Express. Bundle: <10KB initial load.\n\n- **[@countrystatecity/countries-browser](https://www.npmjs.com/package/@countrystatecity/countries-browser)** (This package) — Browser-native version with jsDelivr CDN and lazy loading. Environment: React, Vue, Svelte, Vite, any browser. Same API as the server package — zero config, just import and use.\n\n- **[@countrystatecity/timezones](https://www.npmjs.com/package/@countrystatecity/timezones)** — Comprehensive timezone data with conversion utilities. Environment: Server-side only. Bundle: <20KB initial load.\n\n## 🔗 Links\n\n- [GitHub Repository](https://github.com/dr5hn/countrystatecity-npm/tree/main/packages/countries-browser)\n- [Issues](https://github.com/dr5hn/countrystatecity-npm/issues)\n- [NPM Package](https://www.npmjs.com/package/@countrystatecity/countries-browser)\n- [NPM Organization](https://www.npmjs.com/org/countrystatecity)\n","readmeFilename":"README.md"}