{"_id":"@countrystatecity/countries","_rev":"13-f7966aa41299f1263a26b7973e3ca257","name":"@countrystatecity/countries","dist-tags":{"latest":"3.0.1"},"versions":{"1.0.0":{"name":"@countrystatecity/countries","version":"1.0.0","keywords":["country","state","city","location","geography","iso","typescript","ios-compatible","timezone","translations","lazy-loading"],"author":{"name":"dr5hn"},"license":"MIT","_id":"@countrystatecity/countries@1.0.0","maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"homepage":"https://github.com/dr5hn/world/tree/main/packages/countries#readme","bugs":{"url":"https://github.com/dr5hn/world/issues"},"dist":{"shasum":"c465f524ea191bf1cc2676a20a6605424ab3878f","tarball":"https://registry.npmjs.org/@countrystatecity/countries/-/countries-1.0.0.tgz","fileCount":4124,"integrity":"sha512-TDxxJYfo4ff0YnGyjn2tv8dijXzoCRyrL+Anm+q9uBDQuczfjocHXVEVcmE0pKW0+PTFtAUmQmXThY+4wpWBMg==","signatures":[{"sig":"MEQCIDNzJQMqUw/HG6IV3wKBN+ml9pLAu+juX9dhge1uKZZsAiAF7DLGyxKGb/hFnY7xMbZv6O3cr2Zrc6vTt1gOGzXNJw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43867568},"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":"9b9b90d21305e3457a3b5511cc36665fcbc7466b","scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup","test:ios":"vitest run compatibility","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/world.git","type":"git","directory":"packages/countries"},"_npmVersion":"10.8.2","description":"Official countries, states, and cities database with iOS/Safari support and minimal bundle size","directories":{},"_nodeVersion":"20.19.5","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^1.0.0","ts-node":"^10.9.2","typescript":"^5.3.0","@types/node":"^20.19.19"},"_npmOperationalInternal":{"tmp":"tmp/countries_1.0.0_1759828058253_0.3835318614137504","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@countrystatecity/countries","version":"1.0.1","keywords":["country","state","city","location","geography","iso","typescript","ios-compatible","timezone","translations","lazy-loading"],"author":{"name":"dr5hn"},"license":"ODbL-1.0","_id":"@countrystatecity/countries@1.0.1","maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"homepage":"https://github.com/dr5hn/countrystatecity/tree/main/packages/countries#readme","bugs":{"url":"https://github.com/dr5hn/countrystatecity/issues"},"dist":{"shasum":"02f3a80e2a4b00fa0b4f75e9bb0fc0d7a849c025","tarball":"https://registry.npmjs.org/@countrystatecity/countries/-/countries-1.0.1.tgz","fileCount":4124,"integrity":"sha512-Z23kssHkDK+/wRQZ8P9lyi+MiBliHc6oaN1wAZpopqTQ56o43fy8vkXEokXG5NCXW9l8og5+0zvZUqRNdbNjVw==","signatures":[{"sig":"MEYCIQC4vru+1BkS2nINGlzX9z0fRVTEfQihLDou+ntI6oOvIgIhALJ5swXggL/UUJzElg9Lq7l/xcnkjpYhtB1CpTMNhDHw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43868411},"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":"d5c399e5a2fb22a9de68527124aa197fec0dd987","scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup","test:ios":"vitest run compatibility","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.git","type":"git","directory":"packages/countries"},"_npmVersion":"10.8.2","description":"Official countries, states, and cities database with iOS/Safari support and minimal bundle size","directories":{},"_nodeVersion":"20.19.5","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^1.0.0","ts-node":"^10.9.2","typescript":"^5.3.0","@types/node":"^20.19.19"},"_npmOperationalInternal":{"tmp":"tmp/countries_1.0.1_1759830512093_0.18026840034654068","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@countrystatecity/countries","version":"1.0.2","keywords":["country","state","city","location","geography","iso","typescript","ios-compatible","timezone","translations","lazy-loading"],"author":{"name":"dr5hn"},"license":"ODbL-1.0","_id":"@countrystatecity/countries@1.0.2","maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"homepage":"https://github.com/dr5hn/countrystatecity/tree/main/packages/countries#readme","bugs":{"url":"https://github.com/dr5hn/countrystatecity/issues"},"dist":{"shasum":"523581a279f05c8d16051d9e4eaab8bfe06f866f","tarball":"https://registry.npmjs.org/@countrystatecity/countries/-/countries-1.0.2.tgz","fileCount":4124,"integrity":"sha512-fIGWFw+8exv4b1tutAfYYM6Jmp302iUXFjSZFUd6qqAx8lK+2G/S+6c39nnDegcOKxPWRnljs4GkT9Ht/aijIg==","signatures":[{"sig":"MEQCIBzxqqWO7Yl/vNX33+OamsIrqO5aEZMt/Y+0dr9lnwABAiBdB+7WaK4jD150S79Izpjhyb8/JmEdz6NPPory7tSvpg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43868457},"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":"39c0e11b2122286e23de92a7331f576ceab87aa7","scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup","test:ios":"vitest run compatibility","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.git","type":"git","directory":"packages/countries"},"_npmVersion":"10.8.2","description":"Official countries, states, and cities database with iOS/Safari support and minimal bundle size","directories":{},"_nodeVersion":"20.19.5","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^1.0.0","ts-node":"^10.9.2","typescript":"^5.3.0","@types/node":"^20.19.19"},"_npmOperationalInternal":{"tmp":"tmp/countries_1.0.2_1759831193132_0.5595265931050943","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@countrystatecity/countries","version":"1.0.3","keywords":["country-state-city","countries states cities","countries states cities database","country state city","country state city database","geolocation","country","state","city","location","geography","iso","typescript","ios-compatible","timezone","translations","lazy-loading"],"author":{"name":"dr5hn"},"license":"ODbL-1.0","_id":"@countrystatecity/countries@1.0.3","maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"homepage":"https://github.com/dr5hn/countrystatecity/tree/main/packages/countries#readme","bugs":{"url":"https://github.com/dr5hn/countrystatecity/issues"},"dist":{"shasum":"29955863bd19db33149f233b757f35e9ff66497f","tarball":"https://registry.npmjs.org/@countrystatecity/countries/-/countries-1.0.3.tgz","fileCount":4124,"integrity":"sha512-10eIHmTAv4c1yd54QDfkolHU6pcfgEkZyvaFgQ8YpENGd3qUPOi1IPodB0CiszJgjrWbZRkQF7PbEu/CfIfbnw==","signatures":[{"sig":"MEQCID5hZma6QTiF3AAnZPnOK2uKjGjzie7i/WnDfbkrht+YAiB2ytZLABlnhY0n3kBF1yKrsEoVXDoyyFd/aNzSjvzLVQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43868588},"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":"ff3ea91e5880da07405091fa3bc875911eff7ca4","scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup","test:ios":"vitest run compatibility","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.git","type":"git","directory":"packages/countries"},"_npmVersion":"10.8.2","description":"Official countries, states, and cities database with iOS/Safari support and minimal bundle size","directories":{},"_nodeVersion":"20.19.5","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^1.0.0","ts-node":"^10.9.2","typescript":"^5.3.0","@types/node":"^20.19.19"},"_npmOperationalInternal":{"tmp":"tmp/countries_1.0.3_1759832109787_0.33756876294292715","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@countrystatecity/countries","version":"1.0.4","keywords":["country-state-city","countries states cities","countries states cities database","country state city","country state city database","geolocation","country","state","city","location","geography","iso","typescript","ios-compatible","timezone","translations","lazy-loading"],"author":{"name":"dr5hn"},"license":"ODbL-1.0","_id":"@countrystatecity/countries@1.0.4","maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"homepage":"https://github.com/dr5hn/countrystatecity/tree/main/packages/countries#readme","bugs":{"url":"https://github.com/dr5hn/countrystatecity/issues"},"dist":{"shasum":"df447bdd0ceaba19ee91457a4f45f3ba0859bcff","tarball":"https://registry.npmjs.org/@countrystatecity/countries/-/countries-1.0.4.tgz","fileCount":4394,"integrity":"sha512-BQyZJ5fUps+ArptYRvLoCzfKGsIz3yCMcGc/Pgi4fSSHGKI5YlsefGeblFUnkIFuSpOMnb/GAu/GL/hzz0Kq9g==","signatures":[{"sig":"MEQCIAjz12xaYSG2sSltE+8D5fbLGoLkWntALjGxpusSMzS9AiBorjOlAn0Lkkm99q2D6uYSziVlJIZJfNVsGuLS1HT8FA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45650348},"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":"4b45ad858d60c944687e22cb53422ace079d1544","scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup","test:ios":"vitest run compatibility","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.git","type":"git","directory":"packages/countries"},"_npmVersion":"10.8.2","description":"Official countries, states, and cities database with iOS/Safari support and minimal bundle size","directories":{},"_nodeVersion":"20.19.5","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^1.0.0","ts-node":"^10.9.2","typescript":"^5.3.0","@types/node":"^20.19.19"},"_npmOperationalInternal":{"tmp":"tmp/countries_1.0.4_1760789602689_0.506452761664598","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@countrystatecity/countries","version":"1.0.5","keywords":["country-state-city","countries states cities","countries states cities database","country state city","country state city database","geolocation","country","state","city","location","geography","iso","typescript","ios-compatible","timezone","translations","lazy-loading"],"author":{"name":"dr5hn"},"license":"ODbL-1.0","_id":"@countrystatecity/countries@1.0.5","maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"homepage":"https://github.com/dr5hn/countrystatecity-countries#readme","bugs":{"url":"https://github.com/dr5hn/countrystatecity-countries/issues"},"dist":{"shasum":"1a6749198412b345b6bf55e3be6292d55f129ad1","tarball":"https://registry.npmjs.org/@countrystatecity/countries/-/countries-1.0.5.tgz","fileCount":4562,"integrity":"sha512-AsxLm46eYTnP+lLKKk8o2ShJslVX4pAh762Kjux/40sVBEVH152PSgevlBEUxRawNXrccCbA8CQYLAJj5s9Tyw==","signatures":[{"sig":"MEUCIQCsTSVz5otCWxXq4kpeO6x55Skj5NuM5/0H52KLCG/EIQIgHA23uL/rYxC7BrlKfKvU1LgAPODwcTt0NiXIsxU9KdU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46510684},"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":"6cc2b568b1467d1a45c78cc543d19d4b8c77f8b0","scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup","test:ios":"vitest run compatibility","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.git","type":"git"},"_npmVersion":"10.8.2","description":"Official countries, states, and cities database with iOS/Safari support and minimal bundle size","directories":{},"_nodeVersion":"20.19.6","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.16","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^20.19.19"},"_npmOperationalInternal":{"tmp":"tmp/countries_1.0.5_1766322311217_0.3615912371468115","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@countrystatecity/countries","version":"1.0.6","keywords":["country-state-city","countries states cities","countries states cities database","country state city","country state city database","geolocation","country","state","city","location","geography","iso","typescript","ios-compatible","timezone","translations","lazy-loading"],"author":{"name":"dr5hn"},"license":"ODbL-1.0","_id":"@countrystatecity/countries@1.0.6","maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"homepage":"https://github.com/dr5hn/countrystatecity-countries#readme","bugs":{"url":"https://github.com/dr5hn/countrystatecity-countries/issues"},"dist":{"shasum":"e465ac947b8bdcba1bdf37f6fa4841bfffb96872","tarball":"https://registry.npmjs.org/@countrystatecity/countries/-/countries-1.0.6.tgz","fileCount":4747,"integrity":"sha512-7PyvBlZ98BtHk6QD3yp7JD55ucmjENJqMCs0C1//H3rmC43xGT8CBIe7M8RMOSOmSI0JJexTEQxiZXjyq0tKBA==","signatures":[{"sig":"MEUCIQCjOi4c0/AVxK3MNRE/0FGyzISnthaDbn1E1tG7bjIc9gIgahfXUnSl1Xi38blrz1dEhRy8mI/79a+hGt/Lj8irUmk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47201391},"main":"./dist/index.cjs","type":"module","_from":"file:countrystatecity-countries-1.0.6.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","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup","test:ios":"vitest run compatibility","typecheck":"tsc --noEmit","test:watch":"vitest","generate-data":"node scripts/generate-data.cjs"},"_npmUser":{"name":"dr5hn","email":"gadadarshan@gmail.com"},"_resolved":"/tmp/27f6268529ead671b7bb49c36cc9ecdc/countrystatecity-countries-1.0.6.tgz","_integrity":"sha512-7PyvBlZ98BtHk6QD3yp7JD55ucmjENJqMCs0C1//H3rmC43xGT8CBIe7M8RMOSOmSI0JJexTEQxiZXjyq0tKBA==","repository":{"url":"git+https://github.com/dr5hn/countrystatecity-countries.git","type":"git"},"_npmVersion":"10.8.2","description":"Official countries, states, and cities database with iOS/Safari support and minimal bundle size","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.16","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^20.19.19"},"_npmOperationalInternal":{"tmp":"tmp/countries_1.0.6_1781168786263_0.39858912737710717","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@countrystatecity/countries","version":"1.0.7","keywords":["country-state-city","countries states cities","countries states cities database","country state city","country state city database","geolocation","country","state","city","location","geography","iso","typescript","ios-compatible","timezone","translations","lazy-loading"],"author":{"name":"dr5hn"},"license":"ODbL-1.0","_id":"@countrystatecity/countries@1.0.7","maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"homepage":"https://github.com/dr5hn/countrystatecity-npm/tree/main/packages/countries#readme","bugs":{"url":"https://github.com/dr5hn/countrystatecity-npm/issues"},"dist":{"shasum":"d98e6ec9c8a6d512b936fca16722714de55f50a0","tarball":"https://registry.npmjs.org/@countrystatecity/countries/-/countries-1.0.7.tgz","fileCount":4747,"integrity":"sha512-/CDaCWpdJQWarHnDSqvg7bWZdFlQX7XxDMM3iAwxnOifvO20ntpqb2MKFmm6Dtd6sEgbpWcelHjDzWQSrXP+cw==","signatures":[{"sig":"MEYCIQD2xX41XnErqr9UfyEJlha1x0Uai5/aaXwYIhyllI9kLwIhAJbRozqXZIjdeU0ctHa6wyQVIoBPWqVZW7g+6l6TwYtY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47201407},"main":"./dist/index.cjs","type":"module","_from":"file:countrystatecity-countries-1.0.7.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","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup","test:ios":"vitest run compatibility","typecheck":"tsc --noEmit","test:watch":"vitest","generate-data":"node scripts/generate-data.cjs"},"_npmUser":{"name":"dr5hn","email":"gadadarshan@gmail.com"},"_resolved":"/tmp/0e109f018cc073ce7de257d8e8e9c744/countrystatecity-countries-1.0.7.tgz","_integrity":"sha512-/CDaCWpdJQWarHnDSqvg7bWZdFlQX7XxDMM3iAwxnOifvO20ntpqb2MKFmm6Dtd6sEgbpWcelHjDzWQSrXP+cw==","repository":{"url":"git+https://github.com/dr5hn/countrystatecity-npm.git","type":"git"},"_npmVersion":"10.8.2","description":"Official countries, states, and cities database with iOS/Safari support and minimal bundle size","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.16","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^20.19.19"},"_npmOperationalInternal":{"tmp":"tmp/countries_1.0.7_1781173078030_0.85604866743237","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@countrystatecity/countries","version":"1.0.8","keywords":["country-state-city","countries states cities","countries states cities database","country state city","country state city database","geolocation","country","state","city","location","geography","iso","typescript","ios-compatible","timezone","translations","lazy-loading"],"author":{"name":"dr5hn"},"license":"ODbL-1.0","_id":"@countrystatecity/countries@1.0.8","maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"homepage":"https://github.com/dr5hn/countrystatecity-npm/tree/main/packages/countries#readme","bugs":{"url":"https://github.com/dr5hn/countrystatecity-npm/issues"},"dist":{"shasum":"a923b2bb06e760f11141ceadef3fd499c1813489","tarball":"https://registry.npmjs.org/@countrystatecity/countries/-/countries-1.0.8.tgz","fileCount":4747,"integrity":"sha512-3QGsYya6PcOu7Yx9svwiGPyJXg7vorJ8ntOkg9m2k6USH2bsawrseRerobXlIfY/B5v/0WaUvpK66INNelg2Fw==","signatures":[{"sig":"MEUCIQDfGBkH0Xjut7gC32d/SFy6rIGtZnoZ4fEYsSGQWfJANAIgE8GgVfAeHTKZPBFls8EAd8jdyZg/8D4TCP8VHWTvsWw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46313201},"main":"./dist/index.cjs","type":"module","_from":"file:countrystatecity-countries-1.0.8.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","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup","test:ios":"vitest run compatibility","typecheck":"tsc --noEmit","test:watch":"vitest","generate-data":"node scripts/generate-data.cjs"},"_npmUser":{"name":"dr5hn","email":"gadadarshan@gmail.com"},"_resolved":"/tmp/fbe4d8d6f5de5f2ee8ee6f74795856d4/countrystatecity-countries-1.0.8.tgz","_integrity":"sha512-3QGsYya6PcOu7Yx9svwiGPyJXg7vorJ8ntOkg9m2k6USH2bsawrseRerobXlIfY/B5v/0WaUvpK66INNelg2Fw==","repository":{"url":"git+https://github.com/dr5hn/countrystatecity-npm.git","type":"git"},"_npmVersion":"10.8.2","description":"Official countries, states, and cities database with iOS/Safari support and minimal bundle size","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.16","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^20.19.19"},"_npmOperationalInternal":{"tmp":"tmp/countries_1.0.8_1786169481665_0.4623682160890341","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"@countrystatecity/countries","version":"1.0.9","keywords":["country-state-city","countries states cities","countries states cities database","country state city","country state city database","geolocation","country","state","city","location","geography","iso","typescript","ios-compatible","timezone","translations","lazy-loading"],"author":{"name":"dr5hn"},"license":"ODbL-1.0","_id":"@countrystatecity/countries@1.0.9","maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"homepage":"https://github.com/dr5hn/countrystatecity-npm/tree/main/packages/countries#readme","bugs":{"url":"https://github.com/dr5hn/countrystatecity-npm/issues"},"dist":{"shasum":"82aabf56078bb2ab863a62c07a4f87cd4506122c","tarball":"https://registry.npmjs.org/@countrystatecity/countries/-/countries-1.0.9.tgz","fileCount":4749,"integrity":"sha512-CnrvnMJS4lLZGFpEp+NuDN73DkDm7CkVE7wtTgntDNt3RQrQKgfs80VWDEIUmQpNSazlR7ipg4Qjc/xVAxFOVw==","signatures":[{"sig":"MEQCIQDTYzdd4ybR9EYtKthiaiqxUz+DqKXjuexb+g68rwV72gIfI2I4hgrSzYyaOzw4DmAEy7b/XSG8FaL5QvmkN4xgzA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46521825},"main":"./dist/index.cjs","type":"module","_from":"file:countrystatecity-countries-1.0.9.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","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup","test:ios":"vitest run compatibility","typecheck":"tsc --noEmit","test:watch":"vitest","generate-data":"node scripts/generate-data.cjs"},"_npmUser":{"name":"dr5hn","email":"gadadarshan@gmail.com"},"_resolved":"/tmp/899c75de1f12eb6ebfe4c86bb72459fc/countrystatecity-countries-1.0.9.tgz","_integrity":"sha512-CnrvnMJS4lLZGFpEp+NuDN73DkDm7CkVE7wtTgntDNt3RQrQKgfs80VWDEIUmQpNSazlR7ipg4Qjc/xVAxFOVw==","repository":{"url":"git+https://github.com/dr5hn/countrystatecity-npm.git","type":"git"},"_npmVersion":"10.8.2","description":"Official countries, states, and cities database with iOS/Safari support and minimal bundle size","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.16","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^20.19.19"},"_npmOperationalInternal":{"tmp":"tmp/countries_1.0.9_1786188764145_0.3133563484727657","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@countrystatecity/countries","version":"2.0.0","keywords":["country-state-city","countries states cities","countries states cities database","country state city","country state city database","geolocation","country","state","city","location","geography","iso","typescript","ios-compatible","timezone","translations","lazy-loading"],"author":{"name":"dr5hn"},"license":"ODbL-1.0","_id":"@countrystatecity/countries@2.0.0","maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"homepage":"https://github.com/dr5hn/countrystatecity-npm/tree/main/packages/countries#readme","bugs":{"url":"https://github.com/dr5hn/countrystatecity-npm/issues"},"dist":{"shasum":"2d7ef7137cacc5fa9a0f9f4a61c5bf76927b955a","tarball":"https://registry.npmjs.org/@countrystatecity/countries/-/countries-2.0.0.tgz","fileCount":5211,"integrity":"sha512-PtaZVaGeRmSsKK/Has0uodYgiy2LNArIVUVDMYCvBt3m3VeMDqA5gE1KXsL+STwCbx5/GOQZ2L9JO3DNLirNYA==","signatures":[{"sig":"MEYCIQD5nz6UIvpTF6iSW4ioFbWPDmTPNcObCnAaTAXODAMovQIhANFbDmvdXnIWpbtBdQKjXnrGHYTO/f9LPFerg1zguF9a","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCICikFr9kwlqPjt13Qa1zE+q8fzyRJjhc09wcbGatDWSnAiEArafM/ysKqsmcCthFKrYY3aselL6de3jkCSDlsOOX2KA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":59459388},"main":"./dist/index.cjs","type":"module","_from":"file:countrystatecity-countries-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","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup","test:ios":"vitest run compatibility","typecheck":"tsc --noEmit","test:watch":"vitest","generate-data":"node scripts/generate-data.cjs"},"_npmUser":{"name":"dr5hn","email":"gadadarshan@gmail.com"},"_resolved":"/tmp/2e667e70183dc6f21628579177d621b6/countrystatecity-countries-2.0.0.tgz","_integrity":"sha512-PtaZVaGeRmSsKK/Has0uodYgiy2LNArIVUVDMYCvBt3m3VeMDqA5gE1KXsL+STwCbx5/GOQZ2L9JO3DNLirNYA==","repository":{"url":"git+https://github.com/dr5hn/countrystatecity-npm.git","type":"git"},"_npmVersion":"10.8.2","description":"Official countries, states, and cities database with iOS/Safari support and minimal bundle size","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.16","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^20.19.19"},"_npmOperationalInternal":{"tmp":"tmp/countries_2.0.0_1791888007083_0.019272728334063904","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@countrystatecity/countries","version":"3.0.0","keywords":["country-state-city","countries states cities","countries states cities database","country state city","country state city database","geolocation","country","state","city","location","geography","iso","typescript","ios-compatible","timezone","translations","lazy-loading"],"author":"dr5hn","license":"ODbL-1.0","_id":"@countrystatecity/countries@3.0.0","maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"homepage":"https://github.com/dr5hn/countrystatecity-npm/tree/main/packages/countries#readme","bugs":{"url":"https://github.com/dr5hn/countrystatecity-npm/issues"},"dist":{"shasum":"7f9d95495408d307d321543a9147fa4db8b500d1","tarball":"https://registry.npmjs.org/@countrystatecity/countries/-/countries-3.0.0.tgz","fileCount":5248,"integrity":"sha512-WpnOqGcnuWPf4hsPVjKqwecv0H8h3Th5IlpL45hKPOwSK9b699PCdBUSPPPmRIYaVXVMS8GHcVoO8lxxRG0vkQ==","signatures":[{"sig":"MEQCIF/6iDrJFuNY2oks6LirrlTI2LM0g5VcPPupi4HUL1XhAiBWyX0f0voltVIaM2t5/gTjmB2hOik0AH+qy528SPmToA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIAamhzV2ebXZxeI++0tUtXSp78dW9B6B9lV7ChMmI5FfAiEAvMKeAhpl121jZ6PeCHlNwIEKRbHY/G8adlmBZ7goyAU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":64025856},"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","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup","test:ios":"vitest run compatibility","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":"Official countries, states, and cities database with iOS/Safari support and minimal bundle size","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_3.0.0_1793274323741_0.7219510881841796","host":"s3://npm-registry-packages-npm-production"}},"3.0.1":{"_id":"@countrystatecity/countries@3.0.1","bugs":{"url":"https://github.com/dr5hn/countrystatecity-npm/issues"},"dist":{"shasum":"dd95a42c27ede3fd04d5a60743600bec8b354723","tarball":"https://registry.npmjs.org/@countrystatecity/countries/-/countries-3.0.1.tgz","fileCount":5248,"integrity":"sha512-+7QuvGfWDbAhDIWzpgKERyls/OGNItStBkvMdoSjQ6mlXyUz2/EMbdIvYgzcBkgZ5NhmYhpsfH8wCVqfkurdOQ==","signatures":[{"sig":"MEUCIQDVMJw1Z4Oi8EBNHgD0JVsH0eZ+FrDlQBpoUUvhC8sQngIgbvsRZNBow+KmGNyuasdkQcCe8MWjZ/4gnQZnRSTgKS8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDeovtIx64LvtVQ90WgkQR8BKtnn8KxVRkgK41Za6PgwAIhAOED5OXcO9sZnYOHVIq2BTghsS570h/uT/55Da0O5JLe"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@countrystatecity%2fcountries@3.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":65680095},"main":"./dist/index.cjs","name":"@countrystatecity/countries","type":"module","_from":"file:countrystatecity-countries-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","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup","test:ios":"vitest run compatibility","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":"1e5fbc0f-f794-4802-9346-b5b90c483b60"}},"homepage":"https://github.com/dr5hn/countrystatecity-npm/tree/main/packages/countries#readme","keywords":["country-state-city","countries states cities","countries states cities database","country state city","country state city database","geolocation","country","state","city","location","geography","iso","typescript","ios-compatible","timezone","translations","lazy-loading"],"_resolved":"/home/runner/work/countrystatecity-npm/countrystatecity-npm/release-packages/countrystatecity-countries-3.0.1.tgz","overrides":{"esbuild":"0.28.2"},"_integrity":"sha512-+7QuvGfWDbAhDIWzpgKERyls/OGNItStBkvMdoSjQ6mlXyUz2/EMbdIvYgzcBkgZ5NhmYhpsfH8wCVqfkurdOQ==","repository":{"url":"git+https://github.com/dr5hn/countrystatecity-npm.git","type":"git"},"_npmVersion":"11.20.0","description":"Official countries, states, and cities database with iOS/Safari support and minimal bundle size","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_3.0.1_1793714382571_0.5038942080665388"}}},"time":{"created":"2025-10-07T09:07:38.170Z","modified":"2026-11-03T13:59:43.134Z","1.0.0":"2025-10-07T09:07:38.666Z","1.0.1":"2025-10-07T09:48:32.556Z","1.0.2":"2025-10-07T09:59:53.456Z","1.0.3":"2025-10-07T10:15:10.117Z","1.0.4":"2025-10-18T12:13:23.019Z","1.0.5":"2025-12-21T13:05:11.587Z","1.0.6":"2026-06-11T09:06:26.698Z","1.0.7":"2026-06-11T10:17:58.311Z","1.0.8":"2026-08-08T06:11:21.939Z","1.0.9":"2026-08-08T11:32:44.410Z","2.0.0":"2026-10-13T10:40:07.418Z","3.0.0":"2026-10-29T11:45:24.076Z","3.0.1":"2026-11-03T13:59:42.787Z"},"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#readme","keywords":["country-state-city","countries states cities","countries states cities database","country state city","country state city database","geolocation","country","state","city","location","geography","iso","typescript","ios-compatible","timezone","translations","lazy-loading"],"repository":{"url":"git+https://github.com/dr5hn/countrystatecity-npm.git","type":"git"},"description":"Official countries, states, and cities database with iOS/Safari support and minimal bundle size","maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"readme":"# @countrystatecity/countries\n\n[![npm](https://img.shields.io/npm/v/@countrystatecity/countries)](https://www.npmjs.com/package/@countrystatecity/countries)\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?label=countries)](https://www.npmjs.com/package/@countrystatecity/countries)\n[![npm downloads](https://img.shields.io/npm/dw/@countrystatecity/countries?label=countries)](https://www.npmjs.com/package/@countrystatecity/countries)\n\nOfficial countries, states, and cities database with iOS/Safari support and minimal bundle size.\n\n**Environment:** 🖥️ **Server-side only** (Node.js, Next.js API routes, Express, etc.)\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- 📱 **iOS Compatible**: No stack overflow errors on Safari/iOS browsers\n- 🚀 **Minimal Bundle**: <10KB initial load, lazy-load everything else\n- 🔄 **Lazy Loading**: Dynamic imports for optimal performance\n- 🌐 **Translations**: 18+ languages supported\n- ⏰ **Timezone Data**: Full timezone information per location\n- 📝 **TypeScript**: Full type definitions included\n- 🔧 **Tree-Shakeable**: Only bundle what you use\n\n### Why This Package?\n\nThe popular `country-state-city` package (162K weekly downloads) has critical issues:\n- 🔴 8MB bundle size (includes ALL data)\n- 🔴 iOS Safari crashes with stack overflow errors\n- 🔴 Unmaintained for 2+ years\n- 🔴 Static imports force entire bundle\n\nThis package solves each of those problems:\n- ✅ Minimal bundle (<10KB initial)\n- ✅ Dynamic imports & lazy loading\n- ✅ iOS/Safari compatible\n- ✅ Always updated from authoritative database\n- ✅ Tree-shakeable & code-splittable\n\n## 📦 Installation\n\n```bash\nnpm install @countrystatecity/countries\n# or\nyarn add @countrystatecity/countries\n# or\npnpm add @countrystatecity/countries\n```\n\n> **⚠️ Server-Side Only**: This package requires Node.js file system access and cannot be used in browser environments. For frontend use, install [`@countrystatecity/countries-browser`](https://www.npmjs.com/package/@countrystatecity/countries-browser) instead — same API, works in React/Vue/Svelte/Vite.\n\n## 🚀 Quick Start\n\n```typescript\nimport { getCountries, getStatesOfCountry, getCitiesOfState } from '@countrystatecity/countries';\n\n// Get all countries (lightweight - ~5KB)\nconst countries = await getCountries();\nconsole.log(countries[0]);\n// { id: 1, name: \"United States\", iso2: \"US\", emoji: \"🇺🇸\", ... }\n\n// Get all states in a country (~10-100KB depending on country)\nconst states = await getStatesOfCountry('US');\nconsole.log(states[0]);\n// { id: 1, name: \"California\", iso2: \"CA\", ... }\n\n// Get all cities in a state (~5-200KB depending on state)\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, offline-capable snapshot of the data — that's still the right choice when the app must work offline, 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) or [get an API key](https://app.countrystatecity.in?source=npm&campaign=sdk_api_migration&package=countries).\n\n```bash\nnpm install @countrystatecity/sdk\n```\n\n```typescript\n// Before\nimport { getCountries, getStatesOfCountry, getCitiesOfState } from '@countrystatecity/countries';\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- **Bundle Impact:** ~5KB\n\n#### `getCountryByCode(countryCode: string)`\nGet full country metadata including timezones and translations.\n- **Parameters:** `countryCode` - ISO2 code (e.g., 'US')\n- **Returns:** `Promise<ICountryMeta | null>`\n- **Bundle Impact:** ~5KB per country\n\n#### `getStatesOfCountry(countryCode: string)`\nGet all states/provinces for a country.\n- **Parameters:** `countryCode` - ISO2 code\n- **Returns:** `Promise<IState[]>`\n- **Bundle Impact:** ~10-100KB depending on country\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- **Bundle Impact:** ~5-200KB depending on state\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- **Bundle Impact:** ~3KB\n\n#### `getSubregions()`\nGet list of all subregions.\n- **Returns:** `Promise<ISubregion[]>`\n- **Bundle Impact:** ~13KB\n\n### Utility Functions\n\n#### `isValidCountryCode(countryCode: 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, searchTerm: string)`\nSearch cities by partial name match.\n- **Returns:** `Promise<ICity[]>`\n\n#### `getCountryNameByCode(countryCode: 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## 🔧 TypeScript Types\n\n```typescript\nimport type { ICountry, ICountryMeta, IState, ICity, IRegion, ISubregion, ITimezone } from '@countrystatecity/countries';\n```\n\n## 📊 Bundle Size\n\n| Action | @countrystatecity/countries | country-state-city |\n|--------|----------------------------|-------------------|\n| Install & import | 5KB | 8MB |\n| Load countries | +2KB | - |\n| Load US states | +30KB | - |\n| Load CA cities | +15KB | - |\n| **Total for typical use** | **~50KB** | **8MB** |\n\n**160x smaller bundle size!**\n\n## 🧪 Testing\n\n```bash\n# Run all tests\nnpm test\n\n# Run iOS compatibility tests specifically\nnpm run test:ios\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)** (This package) — 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)** — Browser-native version with jsDelivr CDN and lazy loading. Environment: React, Vue, Svelte, Vite, any browser. Same API as this 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### Environment Guide\n\n**Use this package (`@countrystatecity/countries`) when:**\n- ✅ Building API endpoints or backends\n- ✅ Using Next.js App Router server components\n- ✅ Running in Node.js, serverless functions (Vercel, AWS Lambda)\n- ✅ You have file system access\n- ✅ Building command-line tools\n\n**For browser/frontend use:**\n\nUse [`@countrystatecity/countries-browser`](https://www.npmjs.com/package/@countrystatecity/countries-browser) — same API, works directly in React, Vue, Svelte, Vite:\n\n```bash\nnpm install @countrystatecity/countries-browser\n```\n\n```typescript\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## 🔗 Links\n\n- [GitHub Repository](https://github.com/dr5hn/countrystatecity-npm/tree/main/packages/countries)\n- [Issues](https://github.com/dr5hn/countrystatecity-npm/issues)\n- [NPM Package](https://www.npmjs.com/package/@countrystatecity/countries)\n- [NPM Organization](https://www.npmjs.com/org/countrystatecity)\n","readmeFilename":"README.md"}