{"_id":"world-cities-json","_rev":"1-7b646561f9d2e0533fe15b777182bbc2","name":"world-cities-json","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"world-cities-json","version":"1.0.0","description":"A JSON dataset of world cities sourced from SimpleMaps World Cities Database, including geographic coordinates and administrative information, with a script to generate data from a CSV source.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","generate":"node src/generate.js"},"repository":{"type":"git","url":"git+https://github.com/JetSetExpert/cities-json.git"},"keywords":["cities","city","geo","location","data","dataset","database"],"author":{"name":"Jet Set Expert","url":"jetsetexpert.com"},"license":"CC-BY-4.0","bugs":{"url":"https://github.com/JetSetExpert/cities-json/issues"},"homepage":"https://jetsetexpert.com","devDependencies":{"csv-parser":"^3.0.0"},"gitHead":"64e45a4d6d5820d56ed8c8e0f241e3737c39c53a","_id":"world-cities-json@1.0.0","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-c4AYOB20q4Sm0VSzEvLVnG3mjmZW2tdhVMWXqe6QyoIWrpsH05UzX7Su07HddfbxvZinrE0dtESW0HpF9nMyeA==","shasum":"02a266781b3aa77cdd8b9d00d7898fae50243ed4","tarball":"https://registry.npmjs.org/world-cities-json/-/world-cities-json-1.0.0.tgz","fileCount":4,"unpackedSize":5750,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1Qzfpq7BTVIiNnQfUD10NiskEgsMrWKvrGOFOqHvEJAIgMj+E5UAgIiBSx6vk25UnYTRi6dd+FrBjliSQbjMPTw0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTaEDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpi4g//S9z+YD820HwaKjYYEasyAWDgmsVSC6iD+2sYsp2psbUJs0kA\r\nl9dStmMgjsrE5NEZhgPw/cluH2WPpv6XYs43hP67lqRg0APUp4AVw/i5Yxci\r\nCaoW2hxA4sf9afdimHyEsSSElxH9DiH/Y+1dW2op4KvjA95bFbxwqhZzs5r0\r\np1B9BVov76f1KbsTXi/pzI6Q2awCGFujk3KL5ITfUkHdMm9MRylzbbN24wCm\r\nIRvcKYgdLCRAeBiiWFhwzTqUTGZxkLTIWWqdAYHBJu9kZcxrpVzlpnP4Yw6k\r\nssuRRXsd0/RbDvIAW6eGnvMHRHd8JXA33mfN/YZBPub+CHKcKxbRyJxA7tKq\r\n8yXnDQ4uOiKfcYZQYPxKE0fm1GmScMysuNJbP8bYvuw9iB89pdyH+OGgqoQX\r\n4cWS/85nG5QvjggHUjpvW/OPPepKzAc7596sF/9BMuxqCPK2bFhqtUSN5fuz\r\nED7ng466XPYF+vBDt6XC2bV//Vp+BX5Cfzs4IQXigEqjVKHz3kC/eKD2gVbz\r\nP2J0HfHHJh/04IenfHRS9SSNOIaqIXmYYZ2SojKKkKgz8Zy0LG9Nwwr1vpbM\r\nofiaiRcDnJBts7yGCom4wjL5c7JS7xqzf533KrWpLfYlt7Y2Zo/MHXWU2GHk\r\nf67/PRmtLFHhjI15JPBxbEiQScXJtvK695g=\r\n=stz/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jetsetexpert","email":"admin@jetsetexpert.com"},"directories":{},"maintainers":[{"name":"jetsetexpert","email":"admin@jetsetexpert.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/world-cities-json_1.0.0_1682809091025_0.927577107784989"},"_hasShrinkwrap":false},"1.0.1":{"name":"world-cities-json","version":"1.0.1","description":"A JSON dataset of world cities sourced from SimpleMaps World Cities Database, including geographic coordinates and administrative information, with a script to generate data from a CSV source.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","generate":"node src/generate.js"},"repository":{"type":"git","url":"git+https://github.com/JetSetExpert/cities-json.git"},"keywords":["cities","city","geo","location","data","dataset","database"],"author":{"name":"Jet Set Expert","url":"jetsetexpert.com"},"license":"CC-BY-4.0","bugs":{"url":"https://github.com/JetSetExpert/cities-json/issues"},"homepage":"https://jetsetexpert.com","devDependencies":{"csv-parser":"^3.0.0"},"gitHead":"e7c723e737c823b61d8c038849ab283573b2aa63","_id":"world-cities-json@1.0.1","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-mUM3bCqAkYfUhIs/MSWbQblsqh9DAsBZgJEyy0JiASHtwbeeMuANFmgwClLUXUCStt+eYbNiB4EOeN4sIdL3pQ==","shasum":"9b9fd1ef2adf753df0a6e0709648f4c63086c4f0","tarball":"https://registry.npmjs.org/world-cities-json/-/world-cities-json-1.0.1.tgz","fileCount":5,"unpackedSize":12337806,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbRlYIO0iT5ELP1cszVx+s2kfgy/Z3Ug+4yhQ+1xPXowIgF0WVwxj2Q7WnroCXX0hDkN0xQUCRh2ZyBSExJSvMSE4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTaGAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6GA//Xr8F/FC0Svzlo8NJb5DcDUlVAHRPq/6eCYxHqCUSZ0eZpjzC\r\nn9kzd1PL07B0fXAqWIUJJdTl05MR+3VWvcMTLvNoc0XsYeSmGwq29oe5UZ3J\r\nhn80QWTUEMKoMXt3ydQA6gWj+ST3BwKlleWdcdCPy5hus3zkciNMqcK82qDy\r\nM72h2SpLWaXhPJl4+xTj2UfgHA12MSXoiMvDAgdCVO63+RJc/b/1QIpFW/Ri\r\nN277Lj0dBYHO7d0sM91dVxd0ZG6BT7L3WP7RlamTAdFGAVadLAQ+2S0sfC6D\r\nyOuXt/pf9//Gb0zMsAR7cPWvQ5hSBGs7tpVrjraeoSzL47dddVf/Y5b9vqsn\r\n3TPIGeaFZP2oqM1uk5Sc5uqT0ZbBn7g80MecKkVualZn4Yejs7DTjEfJYAlD\r\nWLfvQmY7PLugXpCX9IzjG3a1SpMpDf8KwMqV2dpASYvPEtOV99dZSR/p3D0o\r\nAIiapYI5GANDTddBXl11HmiIBvo77CWkXS2TYiGvrPJqBQvykhfbl8NcbWmi\r\nbyfRYolOX/a3OyT26TH2IrDKSHRg1pvDjesmIdSc7t+HU5fGWvaMhvD9ehHa\r\njxTBETCiBKWrXSx/s0j5P1xqmxiKGhV55iS0MndlB2AtJKYOi6V1yrq07FEi\r\nGL32kYfHI3usAUm314AhQ2xWEVIV329c94Y=\r\n=V56J\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jetsetexpert","email":"admin@jetsetexpert.com"},"directories":{},"maintainers":[{"name":"jetsetexpert","email":"admin@jetsetexpert.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/world-cities-json_1.0.1_1682809216229_0.45081636785510315"},"_hasShrinkwrap":false}},"time":{"created":"2023-04-29T22:58:11.025Z","1.0.0":"2023-04-29T22:58:11.201Z","modified":"2023-04-29T23:00:16.619Z","1.0.1":"2023-04-29T23:00:16.472Z"},"maintainers":[{"name":"jetsetexpert","email":"admin@jetsetexpert.com"}],"description":"A JSON dataset of world cities sourced from SimpleMaps World Cities Database, including geographic coordinates and administrative information, with a script to generate data from a CSV source.","homepage":"https://jetsetexpert.com","keywords":["cities","city","geo","location","data","dataset","database"],"repository":{"type":"git","url":"git+https://github.com/JetSetExpert/cities-json.git"},"author":{"name":"Jet Set Expert","url":"jetsetexpert.com"},"bugs":{"url":"https://github.com/JetSetExpert/cities-json/issues"},"license":"CC-BY-4.0","readme":"# world-cities-json\n\nAn NPM module that contains a JSON array of world cities sourced from the [SimpleMaps World Cities Database](https://simplemaps.com/data/world-cities), created by the team at [Jet Set Expert](https://jetsetexpert.com).\n\n## Features\n\n- JSON array of world cities with the following fields:\n  - city: The name of the city/town as a Unicode string (e.g. Goiânia).\n  - city_ascii: city as an ASCII string (e.g. Goiania).\n  - lat: The latitude of the city/town.\n  - lng: The longitude of the city/town.\n  - country: The name of the city/town's country.\n  - iso2: The alpha-2 iso code of the country.\n  - iso3: The alpha-3 iso code of the country.\n  - admin_name: The name of the highest level administration region of the city/town (e.g. a US state or Canadian province).\n\n## Sample JSON\n\n```\n[\n  {\n    \"city\": \"Tokyo\",\n    \"city_ascii\": \"Tokyo\",\n    \"lat\": \"35.6897\",\n    \"lng\": \"139.6922\",\n    \"country\": \"Japan\",\n    \"iso2\": \"JP\",\n    \"iso3\": \"JPN\",\n    \"admin_name\": \"Tōkyō\",\n    \"capital\": \"primary\",\n    \"population\": \"37732000\",\n    \"id\": \"1392685764\"\n  },\n  {\n    \"city\": \"Jakarta\",\n    \"city_ascii\": \"Jakarta\",\n    \"lat\": \"-6.1750\",\n    \"lng\": \"106.8275\",\n    \"country\": \"Indonesia\",\n    \"iso2\": \"ID\",\n    \"iso3\": \"IDN\",\n    \"admin_name\": \"Jakarta\",\n    \"capital\": \"primary\",\n    \"population\": \"33756000\",\n    \"id\": \"1360771077\"\n  },\n  ...\n```\n\n## Installation\n\n```bash\nnpm install cities-json\n```\n\n## Usage\n\n```javascript\nconst { cities } = require(\"cities-json\");\n\nconsole.log(cities);\n```\n\n## Generating the cities.json file\n\nTo generate the cities.json file from a source CSV file, follow these steps:\n\n1. Download the desired CSV file from the [SimpleMaps World Cities Database](https://simplemaps.com/data/world-cities).\n2. Place the CSV file in the /data directory and name it \"worldcities.csv\" or use the --source command line option to provide a custom path.\n3. Run the generate.js script:\n\n```bash\nnode src/generate.js [--source path/to/your/csv]\n```\n\n## Source and License\n\nData is sourced from the [SimpleMaps World Cities Database](https://simplemaps.com/data/world-cities) and is licensed under the [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/) (CC BY 4.0) license.\n\n## Links & Resources\n\n[Jet Set Expert](https://jetsetexpert.com)  \n[cities-json on GitHub](https://github.com/jetsetexpert/cities-json)  \n[world-cities-json on NPM](https://www.npmjs.com/package/world-cities-json)  \n[world-cities-json on Aliyun](https://developer.aliyun.com/mirror/npm/package/world-cities-json)  \n[world-cities-json on TAONPM](https://npmmirror.com/package/world-cities-json)  \n[world-cities-json on jsDlivr](https://www.jsdelivr.com/package/npm/world-cities-json)  \n[world-cities-json on Snyk](https://snyk.io/advisor/npm-package/world-cities-json)  \n[world-cities-json on Libraries.io](https://libraries.io/npm/world-cities-json)  \n[world-cities-json on RunKit](https://npm.runkit.com/world-cities-json)  \n[world-cities-json on npm trends](https://www.npmtrends.com/world-cities-json)  \n[world-cities-json on Package Phobia](https://packagephobia.com/result?p=world-cities-json)  \n[world-cities-json on Skypack](https://www.skypack.dev/view/world-cities-json)  \n[world-cities-json on CNPM](https://cnpmjs.org/package/world-cities-json)  \n[world-cities-json on githubmemory](https://githubmemory.com/repo/javascriptutils/world-cities-json)  \n[world-cities-json on npm.io](https://npm.io/package/world-cities-json)  \n[world-cities-json on Pkg Stats](https://www.pkgstats.com/pkg:world-cities-json)\n\n## Related Packages\n\n[airports-json on GitHub](https://github.com/jetsetexpert/airports)  \n[airports-json on NPM](https://www.npmjs.com/package/airports-json)\n","readmeFilename":"README.md"}