{"_id":"@countrystatecity/countries","_rev":"10-84cd48349dc2c075b9f72840c470e0ec","name":"@countrystatecity/countries","dist-tags":{"latest":"1.0.9"},"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","description":"Official countries, states, and cities database with iOS/Safari support and minimal bundle size","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","repository":{"type":"git","url":"git+https://github.com/dr5hn/countrystatecity-npm.git"},"homepage":"https://github.com/dr5hn/countrystatecity-npm/tree/main/packages/countries#readme","bugs":{"url":"https://github.com/dr5hn/countrystatecity-npm/issues"},"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"}},"./data/*":"./dist/data/*"},"devDependencies":{"@types/node":"^20.19.19","ts-node":"^10.9.2","tsup":"^8.5.1","typescript":"^5.9.3","vitest":"^4.0.16"},"publishConfig":{"access":"public"},"scripts":{"build":"tsup","dev":"tsup --watch","test":"vitest run","test:watch":"vitest","test:ios":"vitest run compatibility","lint":"eslint src --ext .ts","typecheck":"tsc --noEmit","generate-data":"node scripts/generate-data.cjs"},"_id":"@countrystatecity/countries@1.0.9","_integrity":"sha512-CnrvnMJS4lLZGFpEp+NuDN73DkDm7CkVE7wtTgntDNt3RQrQKgfs80VWDEIUmQpNSazlR7ipg4Qjc/xVAxFOVw==","_resolved":"/tmp/899c75de1f12eb6ebfe4c86bb72459fc/countrystatecity-countries-1.0.9.tgz","_from":"file:countrystatecity-countries-1.0.9.tgz","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-CnrvnMJS4lLZGFpEp+NuDN73DkDm7CkVE7wtTgntDNt3RQrQKgfs80VWDEIUmQpNSazlR7ipg4Qjc/xVAxFOVw==","shasum":"82aabf56078bb2ab863a62c07a4f87cd4506122c","tarball":"https://registry.npmjs.org/@countrystatecity/countries/-/countries-1.0.9.tgz","fileCount":4749,"unpackedSize":46521825,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIQDTYzdd4ybR9EYtKthiaiqxUz+DqKXjuexb+g68rwV72gIfI2I4hgrSzYyaOzw4DmAEy7b/XSG8FaL5QvmkN4xgzA=="}]},"_npmUser":{"name":"dr5hn","email":"gadadarshan@gmail.com"},"directories":{},"maintainers":[{"name":"dr5hn","email":"gadadarshan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/countries_1.0.9_1786188764145_0.3133563484727657"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-07T09:07:38.170Z","modified":"2026-08-08T11:32:44.536Z","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"},"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":{"type":"git","url":"git+https://github.com/dr5hn/countrystatecity-npm.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## ✨ 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## 📖 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"}