{"_id":"@basementuniverse/country-code-location","_rev":"4-87287031f3d7203a2ed65447522418bc","name":"@basementuniverse/country-code-location","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@basementuniverse/country-code-location","version":"0.1.0","description":"Convert between 2-digit country codes and locations","main":"src/index.js","scripts":{"build":"tsc","test":"jest"},"keywords":["country","country code","ISO-3166","alpha-2","location","geo"],"author":{"name":"Gordon Larrigan","email":"gordonlarrigan@gmail.com","url":"https://gordonlarrigan.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/basementuniverse/country-code-locations.git"},"devDependencies":{"@types/jest":"^26.0.23","jest":"^26.6.3","ts-jest":"^26.5.6","typescript":"^4.2.4"},"gitHead":"66ee738903eece66490fe56c28e884d48f033e31","bugs":{"url":"https://github.com/basementuniverse/country-code-locations/issues"},"homepage":"https://github.com/basementuniverse/country-code-locations#readme","_id":"@basementuniverse/country-code-location@0.1.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-qJStKjU/BC3UJiRJaEFAa1rW3H3VmAW11BI96VOTZtCggqSKQGQvcaNX1XhmYPqn5RXAB7H7GrlmNNwDWw/45g==","shasum":"6d703031212f7fd4ffe7774408fd7ec120059348","tarball":"https://registry.npmjs.org/@basementuniverse/country-code-location/-/country-code-location-0.1.0.tgz","fileCount":7,"unpackedSize":35474,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgoGZ6CRA9TVsSAnZWagAAQ18QAJP72Tghr4WmCQOquPCb\naKa6TXyz/T9tqADmhumwvmVa3GtRyvb/q424DwYImk3adF6VX9Krk5qHYGuF\nhqvXco+XLd0ips/ZfNwusbm69unS2eBd0H6GlWMey9UHrz4m9KT8Uze1zd/v\n6RHsvAGcfWdNkdnF1UkXSpCnSqSEEeGvM2cp2pclKX8to8EZIXTzLg4oIch+\nHwrIMOiSURru+3DrUU5Z/qDY6PwQFJebZqzmgsIkF1+u6F8u+l7nPM6GwRIQ\nTm8yr0I0f5aYjj1mhQg3HT+Cm33TWlruKstit2QbJLruNuvjcRUE6GsJ6iPi\nKi5Z6GTeyE/Uj93XGzixbzHXWLFOGaovZolBfPQhn43fgqbzW7J4kaSu4gFy\nxeBe7xH8XdkpFLhGHMdDl7MT5mV/Rw7Y5O6c1W7mp/AEA8k0M9pzl5Jh3BEq\n4moL0GhzEgn8Nv4bDHAO74DXiab2+AygqSeXONQYlud7j8JG+8wS99Hpj0PO\nOTelr0nOg3SEV01fry+iIWHpx9A38XzeIK7Jok0EGZDfKe1TR2YPuLpjh4V8\nOvBF1zRxFihQFBIE2u+IHJYRgF4Fb6PRxi1h8HXPo2P4OJZIHHVHUVuLKuPm\nJVi2MlplbrNJKUKvIwJ61iBDw716aZ/wAVQu1RfcVG6Zi1KdMBwMTeGTxGmc\nyaMe\r\n=2DEU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEXV9UjBE32T+5y/k4aKWrYzNNiQyDjsyCuNUjol6jAxAiEA06bdrjNcrrbb08W3ZCdb4xIcaLIiENUzWjG6F1aSDHY="}]},"_npmUser":{"name":"basementuniverse","email":"gordonlarrigan@gmail.com"},"directories":{},"maintainers":[{"name":"basementuniverse","email":"gordonlarrigan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/country-code-location_0.1.0_1621124729829_0.32982825313972364"},"_hasShrinkwrap":false},"0.1.1":{"name":"@basementuniverse/country-code-location","version":"0.1.1","description":"Convert between 2-digit country codes and locations","main":"build/src/index.js","scripts":{"build":"tsc","test":"jest"},"keywords":["country","country code","ISO-3166","alpha-2","location","geo"],"author":{"name":"Gordon Larrigan","email":"gordonlarrigan@gmail.com","url":"https://gordonlarrigan.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/basementuniverse/country-code-location.git"},"devDependencies":{"@types/jest":"^26.0.23","jest":"^26.6.3","ts-jest":"^26.5.6","typescript":"^4.2.4"},"gitHead":"4a1ff53576d8fc1856fd318d783e9de19d2b5c25","bugs":{"url":"https://github.com/basementuniverse/country-code-location/issues"},"homepage":"https://github.com/basementuniverse/country-code-location#readme","_id":"@basementuniverse/country-code-location@0.1.1","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-ZvCS1djg9dUFaaYgIwG9+jRbcozsLNcxXEm+bx2YlQ0e79C7YPWXcEX1v5wxggyvtuFNFBgle6fcDiE/S5zplA==","shasum":"e2b344c17d214170f93914c0085fd9edd36261c2","tarball":"https://registry.npmjs.org/@basementuniverse/country-code-location/-/country-code-location-0.1.1.tgz","fileCount":5,"unpackedSize":32196,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgoGtuCRA9TVsSAnZWagAAWTYP/jKDWkY7n7bFSk3cdt7w\nYzwAYTx8pqzjeDrUd5+3UB4fZ8y+GyUtn4t21Fl2ojA9JbqxhINkDysTWf76\n7fSzV1xLiSvCJiepSp6HbdFHSX2v3rA1RQJ72TaoaWrKCq0zIj47koOyw687\ne6JQ2d3gkB7D0ybXbmHL2rf7Z21xuuf0WVXATLvf8A+Uq0h2ECObWLcaJM0r\n/IdngGuhQEPcpVBH6lgqQluRtZNbukQJs58PhExuXm1E2Bjs1U01DKSfTQlv\nduZZ4MllY4uOokzVCIM7WoWUijBHpmO9b54m6X4Dhbf6UMUMzah39JSy6Sba\nSRcgKkrygbASUIxDKY3MhAvUpo+TxLQ+KaRL/9bOzdjqSDoxv3cwkOkiFZMP\n3LK2mH45iRC6ji7T3CM0tyHkZuqgyJ9//0JS/d62gnarqek3YjmPidS3oreJ\nu+nhGt0PX77EjUAfaQqKx0fOwKrU9w0xeoDiB4aLURaMoMi55WmdSaDFKMHY\nJiUn79uNRI5QtaJwHpsWWArD6g3LG8r0Gb/QMe3zR5JK2uh6vVOShF3VYseT\nj40grak8b+k/PaoJ2Fmfqe72WC17ngzXVn8ZQ2QurQREzQk17r89iWMTOseZ\nE4ytDCIxU6Q0SgCjMdR2hL3g28DcpxaBEEY5ko3HaEGoC3+9wNasbQWyATWG\nT29G\r\n=SNch\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTDKg+r+yZOkgjuH9KJCQ2RWaEpcNTiJxkVKMFS1NwxQIhAMitmuQM7eImpbqansvURnO2eMkun1Hf52rJBwvrmnQR"}]},"_npmUser":{"name":"basementuniverse","email":"gordonlarrigan@gmail.com"},"directories":{},"maintainers":[{"name":"basementuniverse","email":"gordonlarrigan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/country-code-location_0.1.1_1621125998005_0.16320967392400765"},"_hasShrinkwrap":false},"0.1.2":{"name":"@basementuniverse/country-code-location","version":"0.1.2","description":"Convert between 2-digit country codes and locations","main":"build/src/index.js","scripts":{"build":"tsc","test":"jest"},"keywords":["country","country code","ISO-3166","alpha-2","location","geo"],"author":{"name":"Gordon Larrigan","email":"gordonlarrigan@gmail.com","url":"https://gordonlarrigan.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/basementuniverse/country-code-location.git"},"devDependencies":{"@types/jest":"^26.0.23","jest":"^26.6.3","ts-jest":"^26.5.6","typescript":"^4.2.4"},"gitHead":"69e1e6810a8df8d09baaab5d500a112807283d1b","bugs":{"url":"https://github.com/basementuniverse/country-code-location/issues"},"homepage":"https://github.com/basementuniverse/country-code-location#readme","_id":"@basementuniverse/country-code-location@0.1.2","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-H+/ym1FOWVyYTILlwcM2m6HPxx3i+wRy4RbCrnWRyaxHddjRQ4X6NmYZLhB1W7ur29sLB+wmv3qB3lpqZl8QiQ==","shasum":"c353a8a7b77a4c7f20959e42097638fe30bde22a","tarball":"https://registry.npmjs.org/@basementuniverse/country-code-location/-/country-code-location-0.1.2.tgz","fileCount":5,"unpackedSize":32202,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgoGyUCRA9TVsSAnZWagAAUOMQAImmSajLYScXTOc0S0c/\nlA1E6/D+JQtLSjbhw/TLedngPY9CkJTIR7wcbCeV91MFz96gmHpuj9zqzk23\nJ/61levSRQPT1RXZ0BbQCySwe7ZUWQv52G4UiqzDRU7+TRpUe1MZsThBJRoI\nKD3eXitSnHU3qaDCfphy1mryFmlCJA5hemNnlGu3hfXCh7CWaYM3/hIvnyqx\nwB/DTw3MGBJnDWS1bUuPvcP2XZo9oWSafDVKZs5XMCObJwvOh4Qo68TvMZfm\nlU9iMBWvSHbalmayzBlAkLSI7f2hFCrYzyAE0QjVWOjAC+QHOF6mF/JgLzJc\n5zBDw513kuFFzPw86mzgP0J8GQobitvNOWDnk0Z3uPqrLmJR5vedq1dSWfpM\n2WNmfnIp/oBLLWN65+svcIZ+/+bV1qOQ0z+UIB3AxPvJ+0ADl7XjRoXw6Il7\nYC/+oVkzfbsDoiAso+gj9Pkr2BiVPlHd2zjN1URQmQL1/JwVZx6y+7XvM942\nFG4LSOk3mMy+Sm7gSMjbyxY/OMUNUjc6UO/uedy6+vyhch477mBrjDBugUAR\n6U8ck2BNq3vQ1gnw3WfYB/3DhFak5ItjuHeWe1my5m2vCQTMuHbxfWRQKG/u\ngc21v+1+cpdsjPf1rsaKFTUK46FnBspLXPiZtBHyhPNR3lGhDoc1qP0EEyMg\nCilQ\r\n=YVfK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmJMy87tX1dDggla8SaxEVser+0aLmkp7y3jqgkT+FdgIhANWe6JaiZdaqD+n5M1C2JPIMZMJSlsJSBqzh2ZaV2gB1"}]},"_npmUser":{"name":"basementuniverse","email":"gordonlarrigan@gmail.com"},"directories":{},"maintainers":[{"name":"basementuniverse","email":"gordonlarrigan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/country-code-location_0.1.2_1621126291637_0.06565601313870562"},"_hasShrinkwrap":false},"0.2.0":{"name":"@basementuniverse/country-code-location","version":"0.2.0","description":"Convert between 2-digit country codes and locations","main":"build/src/index.js","scripts":{"build":"tsc","test":"jest"},"keywords":["country","country code","ISO-3166","alpha-2","location","geo"],"author":{"name":"Gordon Larrigan","email":"gordonlarrigan@gmail.com","url":"https://gordonlarrigan.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/basementuniverse/country-code-location.git"},"devDependencies":{"@types/jest":"^26.0.23","jest":"^26.6.3","ts-jest":"^26.5.6","typescript":"^4.2.4"},"gitHead":"0598f2fc4e381efe82f4000309ae0e93bbbcd1ee","bugs":{"url":"https://github.com/basementuniverse/country-code-location/issues"},"homepage":"https://github.com/basementuniverse/country-code-location#readme","_id":"@basementuniverse/country-code-location@0.2.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-2SPAaLHHlaIDnELjvL7vneO+Bwrag1kZbAchPCv+pknLnjEhAttOkxazOzjVLA/lDajdWU04wDXHS6VYRRzB6A==","shasum":"91238f36cee07183000ea32c4abb4856108f296a","tarball":"https://registry.npmjs.org/@basementuniverse/country-code-location/-/country-code-location-0.2.0.tgz","fileCount":6,"unpackedSize":32483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpEwJCRA9TVsSAnZWagAAUmYP+wQgCtj9JMi7GKLm7tyA\n4O+twA2MmoqkZAoCxHFMmxNc5P6y/xa+CHHi5DgEdrSJzTmqSxHwoCsjrT0b\nUBWvlT07BKgTEjaJzRBbUf0WzA6Ar08mKGThdY6hmZOsRIeqbQ3DdaTeEwcf\ntJ3OykTbGBxPwDz4ATUJ+P94Z1r7QPmqv+lB00mBVqYUY2U6lQzJEFrhCFqD\nSxuVZOcYulm0XOSwCnctiyJyrN1b4Ey2H9nqcrwOZNqDB2Wq4Pb94QXxCywN\nxrS4XbsMXfe6pz4Hg0Nt+rgXUDsbzkG9dFrqAQXQvfCIgvsGTSGTyXYqHKC5\nt0W1C6PGB8qQwpuc07HsoTovIVQHx6RreCU9YOxf8/10ffMGqnI0vvs1Eo/Z\n6sBxgde7awCRFuvqMUwFn6R1uneJmBr9RFnyt4Gx2Zs52N3rtGtJn630XU38\n58ZxuGHzqJnNpT8S4der1keDWHTslQN5eoV0SLfxzsxoKcg9qIeiMYSaw7Lj\nVcbWdPtHtFiCJwQnAYECJxjSJ3AvLnShOYqL/5KLth9Zflvadfawo9EuwkvH\n15JCyiNEa5LVasVmm5LFTL9ujKF8rIebOAFQRgYvqT7KAEMR778mNfD1SVsw\nNYx5hvquP2PHE2GvChdxwhyIgXkrmk/vn9KIFOCS/TSnrgenMLILr/zfrVud\nwwQX\r\n=aPob\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHAraxS8CFQ0OHjZQLxUcUGvD3DpzZAlRafTGkXaGZiFAiBSgUTqz1PW9GbR/vl/zFDP+PnJ0Ytnh5bqdU+o+GqJVQ=="}]},"_npmUser":{"name":"basementuniverse","email":"gordonlarrigan@gmail.com"},"directories":{},"maintainers":[{"name":"basementuniverse","email":"gordonlarrigan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/country-code-location_0.2.0_1621380104981_0.19202571885735287"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-16T00:25:29.793Z","0.1.0":"2021-05-16T00:25:29.959Z","modified":"2022-04-04T17:46:21.286Z","0.1.1":"2021-05-16T00:46:38.183Z","0.1.2":"2021-05-16T00:51:31.750Z","0.2.0":"2021-05-18T23:21:45.115Z"},"maintainers":[{"name":"basementuniverse","email":"gordonlarrigan@gmail.com"}],"description":"Convert between 2-digit country codes and locations","homepage":"https://github.com/basementuniverse/country-code-location#readme","keywords":["country","country code","ISO-3166","alpha-2","location","geo"],"repository":{"type":"git","url":"git+https://github.com/basementuniverse/country-code-location.git"},"author":{"name":"Gordon Larrigan","email":"gordonlarrigan@gmail.com","url":"https://gordonlarrigan.com"},"bugs":{"url":"https://github.com/basementuniverse/country-code-location/issues"},"license":"MIT","readme":"# Country Code Locations\n\nConvert country codes into locations, or locations into the closest country code.\n\nCountry codes are [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) alpha-2 (2 digit) country codes.\n\nLocations are defined using latitude and longitude and represent a roughly-central location for each country.\n\n## Installation\n\n```\nnpm install @basementuniverse/country-code-location\n```\n\n## How to use\n\nImport the package:\n```typescript\nimport {\n  countryCodeToLocation,\n  locationToCountryCode\n} from '@basementuniverse/country-code-location';\n```\n\nConvert a country code into a location:\n```typescript\nconst australiaLocation = countryCodeToLocation('AU');\n```\n```json\n{\n  \"country\": \"Australia\",\n  \"code\": \"AU\",\n  \"lat\": -27,\n  \"long\": 133\n}\n```\n\nFind the country closest to a location:\n```typescript\nconst closestToLocation = locationToCountryCode(47, -1);\n```\n```json\n{\n  \"country\": \"France\",\n  \"code\": \"FR\",\n  \"lat\": 46,\n  \"long\": 2\n}\n```\n","readmeFilename":"README.md"}