{"_id":"@bmulingbayan22/country-state","_rev":"1-6d44f3cd6f9640aee83a518507a5e4aa","name":"@bmulingbayan22/country-state","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@bmulingbayan22/country-state","version":"1.0.0","description":"Library for fetching Country, its States","main":"dist/index.js","types":"dist/index.d.ts","sideEffects":false,"scripts":{"test":"jest","build-ts":"tsc -p tsconfig.json","build":"npm run build-ts","lint":"eslint index.ts __test__ --fix"},"author":{"name":"harpreetkhalsagtbit@gmail.com"},"license":"GPL-3.0","directories":{"lib":"lib"},"repository":{"type":"git","url":"git+https://github.com/harpreetkhalsagtbit/country-state-city.git"},"husky":{"hooks":{"pre-commit":"npm test","pre-push":"npm test"}},"keywords":["Country","State","City","GeoLocation","Search","Filter"],"bugs":{"url":"https://github.com/harpreetkhalsagtbit/country-state-city/issues"},"homepage":"https://github.com/harpreetkhalsagtbit/country-state-city#readme","devDependencies":{"@types/jest":"^26.0.19","@typescript-eslint/eslint-plugin":"^4.12.0","@typescript-eslint/parser":"^4.12.0","eslint":"^7.17.0","eslint-config-airbnb":"^18.2.1","eslint-config-prettier":"^7.1.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jsx-a11y":"^6.4.1","eslint-plugin-prettier":"^3.3.1","eslint-plugin-react":"^7.22.0","husky":"^4.3.6","jest":"^26.6.3","json-minimizer-webpack-plugin":"^3.0.0","prettier":"^2.2.1","ts-jest":"^26.4.4","ts-loader":"^9.2.3","typescript":"^4.3.2","webpack":"^5.38.1","webpack-cli":"^4.7.2"},"dependencies":{"copy-webpack-plugin":"^9.0.0"},"gitHead":"4159132eb5ebb6cab45ee55830c10dd1baff6c23","_id":"@bmulingbayan22/country-state@1.0.0","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-axPNCPJEI+pdGetJDVhLl/Fni22Hlr9GjStjmMT/g6tclH/7W/vD6gWOvHH8DC7eJKC0O5lVVa8XRjh1pMG6GA==","shasum":"5f88d4070a1bfad27d0dd42cb5fde987795a0ad8","tarball":"https://registry.npmjs.org/@bmulingbayan22/country-state/-/country-state-1.0.0.tgz","fileCount":16,"unpackedSize":26280128,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFyyfxngJqX5X6DaeOBfQJbHIN2vhhQzt9gFe51LhSzEAiBA7IH2z0gLSf16pSRrjncZwQIWhshuH7gBABxiYKiE8A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVvbIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp4BhAAg/4JYICu9CEXar6634zbKEbqguRm8+A0Col/HzVVWBP8f1TT\r\nYuVppA56pP8Yx9GScb/Euqyhkd4eaxX9aKS7IffS6GCzlLiq59OaGIoegpXN\r\nec+xhsb601gqcQRW4bdp4MRCeuL/p5yQs+0ouV7+VRfOdJHJOkizozaTOxys\r\nPPSiHYupUVC9W0tl28VKg9v/m9UTcN4PMIrAqUsa5IwsSzG0oTEgkhDrDb/O\r\nEir0eRX5gDrZwimJM+EFfhZ0IBQkCCL131XCh9NvUwjQowgtQcpjsOEi2PQJ\r\n3EFt136I7rKT5U14H7T18l6vrGirockL1OPdujWTbAPTYXpn7mlth+Wltezp\r\nd6HpQ44wdFxWdH1ASSFReh3fDe1mAHI7ekPpzeuGXyQWwYqZLLrU2hsY0ri/\r\nt659xNV8f23V0poHexp28I+EHi+YJZovsmHzt3yG3qm2Btoe5yUmjVqnz5yf\r\nT0cyqtFFE3JMYWITzj5qOMXYkvRRyj4oakrOmBvwvtnuc+ld/XBqbG3dW/lL\r\n17of3wbKkvHCsI3e+N0PunIKtRKZ63azHNe6C4NIEEMIh3SgkxbEyum7C2eo\r\nt49I3dV4kwGVVvSIEIIRB9zbbr8YVGZFu5AmVFyZW7bf5BvY1Equx1fxJnvN\r\n2ekBTtLC/x4kOffmVV0b7kRK8m468/dfGl0=\r\n=BPih\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bmulingbayan22","email":"bryan@outgive.ca"},"maintainers":[{"name":"bmulingbayan22","email":"bryan@outgive.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/country-state_1.0.0_1649866439724_0.05058062340539138"},"_hasShrinkwrap":false},"1.0.3":{"name":"@bmulingbayan22/country-state","version":"1.0.3","description":"Library for fetching Country, its States","main":"dist/index.js","types":"dist/index.d.ts","sideEffects":false,"scripts":{"test":"jest","build-ts":"tsc -p tsconfig.json","build":"npm run build-ts","lint":"eslint index.ts __test__ --fix"},"author":{"name":"harpreetkhalsagtbit@gmail.com"},"license":"GPL-3.0","directories":{"lib":"lib"},"repository":{"type":"git","url":"git+https://github.com/harpreetkhalsagtbit/country-state-city.git"},"keywords":["Country","State","City","GeoLocation","Search","Filter"],"bugs":{"url":"https://github.com/harpreetkhalsagtbit/country-state-city/issues"},"homepage":"https://github.com/harpreetkhalsagtbit/country-state-city#readme","devDependencies":{"@types/jest":"^26.0.19","@typescript-eslint/eslint-plugin":"^4.12.0","@typescript-eslint/parser":"^4.12.0","eslint":"^7.17.0","eslint-config-airbnb":"^18.2.1","eslint-config-prettier":"^7.1.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jsx-a11y":"^6.4.1","eslint-plugin-prettier":"^3.3.1","eslint-plugin-react":"^7.22.0","husky":"^4.3.6","jest":"^26.6.3","json-minimizer-webpack-plugin":"^3.0.0","prettier":"^2.2.1","ts-jest":"^26.4.4","ts-loader":"^9.2.3","typescript":"^4.3.2","webpack":"^5.38.1","webpack-cli":"^4.7.2"},"dependencies":{"copy-webpack-plugin":"^9.0.0"},"gitHead":"9c35cd114aa891a3aa214c6084dbca575a457fc0","_id":"@bmulingbayan22/country-state@1.0.3","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-ygXQFKiIP8GGvOsPP7ykR+Y5sAFihxd8QDjbjIFDp14pnxqyhZaKRVRLFlabke3w9QytX8KXTnWsOzTFqr534g==","shasum":"f4536eb52c575bfb1c9e0c724e5c5cfb8e8d694d","tarball":"https://registry.npmjs.org/@bmulingbayan22/country-state/-/country-state-1.0.3.tgz","fileCount":31,"unpackedSize":2081363,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGJKku1BrmPiyFCuCnU3KvWX9iknY7kfFvUYg5/rBWuFAiAwZYKB8hWKfB23XE1aE0t/TiXlpwXIqpvMdcvIpfF9VQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVvvDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmptNA/+JYSCAMHoLpyg5m8nacZuC9cj9MPT/dCPMDFoqVN7uOFaxQ/K\r\nCt6eoIqOwY8Wd6SByQF2g6j1o7aAhBqskjfji2oO7KshKDNCbg70uIlL3HM3\r\n1Le8djljOJn0VUuEPH1ocysIq9AoP7QY7jEsf04PB5l2ZqHgDyDf74wdFtE+\r\ns3gtkejDBRwuhvT7hC9phubZhyysqgOH8pVSufggqxsjm4AogNzgslYqtZCg\r\n018nfGjAgNz/NmfxaB2ANcah/T3ZiANhqubkiWxb+sbjhMA6gOOA75GorfDA\r\nIlVU/BoSMSFQg1cww8U8p0eR5rm3BQE52QDovwzEB/s6mk2/RoxYX7y9hCd7\r\nS4UTslPniVlXUfMQgGiQEWBpU0Lr+vMDGsWdq9KH1ZQ7GxoL2uX1+U/LoFjb\r\n8229sz2BOMlVtEv44hvnkHN8pEmAnY04tcBo3NqNePGhj3be7Pgb6p1ihWGk\r\ndovf6+xLOAfbuz94GlcKRIfFrsi7poE6CmxgiQTvlhhqzSM/Q2zF1gzxfDXF\r\nGi+EsFxYSc2Ful3XnhyeHo6zvdIgKlO/NVYSvRItE9ShiW11XLNcAhuO8krq\r\n26F8s5dV9gAl5h+oG9wlc2Brlx0N6fom2tfrPGCYusGhCG/PlGGd4deuB//O\r\nDum4oVlE7k1WtCKp3ykH/EnZn4OA1NiIIhU=\r\n=5f4V\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bmulingbayan22","email":"bryan@outgive.ca"},"maintainers":[{"name":"bmulingbayan22","email":"bryan@outgive.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/country-state_1.0.3_1649867715607_0.2582668437035678"},"_hasShrinkwrap":false}},"time":{"created":"2022-04-13T16:13:59.660Z","1.0.0":"2022-04-13T16:14:00.048Z","modified":"2022-04-13T16:35:15.911Z","1.0.3":"2022-04-13T16:35:15.823Z"},"maintainers":[{"name":"bmulingbayan22","email":"bryan@outgive.ca"}],"description":"Library for fetching Country, its States","homepage":"https://github.com/harpreetkhalsagtbit/country-state-city#readme","keywords":["Country","State","City","GeoLocation","Search","Filter"],"repository":{"type":"git","url":"git+https://github.com/harpreetkhalsagtbit/country-state-city.git"},"author":{"name":"harpreetkhalsagtbit@gmail.com"},"bugs":{"url":"https://github.com/harpreetkhalsagtbit/country-state-city/issues"},"license":"GPL-3.0","readme":"country-state-city\n==============================\nBasic library for Country, State and City\n\nData Source:<br>\nhttps://github.com/dr5hn/countries-states-cities-database<br>\nFor any data related issue, you can raise a Issue [here](https://github.com/dr5hn/countries-states-cities-database/issues/new).\n\n# Install\n`npm i country-state-city`\n\n# Usage\n\n## Release : `v3.0.0` (Major Version Release - Not backward compatible)\n  - ES6 Module usage\n   \n     ```js\n\t// Latest version - v3.0.0 with Tree Shaking to reduce bundle size\n\timport { Country, State, City }  from 'country-state-city';\n\tconsole.log(Country.getAllCountries())\n\tconsole.log(State.getAllStates())\n\n     // Import Interfaces`\n\t import { ICountry, IState, ICity } from 'country-state-city'\n\t \n     ```\n  - AMD Module usage\n  \n    ```js\n\t// Latest version - v3.0.0\n\tlet Country = require('country-state-city').Country;\n\tlet State = require('country-state-city').State;\n\n\tconsole.log(Country.getAllCountries())\n\tconsole.log(State.getAllStates())\n\n    ```\n\n\n## For versions `below v2.2.0 and above v0.1.8`\n\n  - ES6 Module usage\n   \n     ```js\n     import csc from 'country-state-city';\n     ```\n\n  - AMD Module usage\n  \n    ```js\n    let csc = require('country-state-city').default;\n    ```\n\n# Docs\n\ngetCountryByCode(countryCode)\n---------------\n\nIt accepts a valid `CountryCode` eg: `'AS'` and   returns *Country Details*\n\ntype: **json | ICountry**\n\n```js\n{\n\t\"isoCode\": \"IN\",\n\t\"name\": \"India\",\n\t\"phonecode\": \"91\",\n\t\"flag\": \"🇮🇳\",\n\t\"currency\": \"INR\",\n\t\"latitude\": \"20.00000000\",\n\t\"longitude\": \"77.00000000\",\n\t\"timezones\": [\n\t\t{\n\t\t\t\"zoneName\": \"Asia\\/Kolkata\",\n\t\t\t\"gmtOffset\": 19800,\n\t\t\t\"gmtOffsetName\": \"UTC+05:30\",\n\t\t\t\"abbreviation\": \"IST\",\n\t\t\t\"tzName\": \"Indian Standard Time\"\n\t\t}\n\t]\n}\n```\n\ngetStateByCodeAndCountry(stateCode, countryCode)\n---------------\n\nIt accepts a valid `StateCode` eg: `'TG'` `CountryCode` eg: `'IN'` and   returns *State Details*\n\ntype: **json | ICountry**\n\n```js\n{\n\t\"name\": \"Telangana\",\n\t\"isoCode\": \"TG\",\n\t\"countryCode\": \"IN\",\n\t\"latitude\": \"18.11243720\",\n\t\"longitude\": \"79.01929970\"\n}\n```\n\ngetStatesOfCountry(countryCode)\n---------------\n\nIt accepts a valid `CountryCode` and returns *all States* as Array of JSON\n\ntype: **array of json | IState**\n\n```js\n[\n\t{\n\t\t\"name\": \"Delhi\",\n\t\t\"isoCode\": \"DL\",\n\t\t\"countryCode\": \"IN\",\n\t\t\"latitude\": \"28.70405920\",\n\t\t\"longitude\": \"77.10249020\"\n\t}\n]\n\n```\ngetCitiesOfState(countryCode, stateCode)\n---------------\n\nIt accepts a valid `CountryCode`, `StateCode` and returns *all Cities* as Array of JSON\n\ntype: **array of json | ICity**\n\n```js\n[\n\t{\n\t\t\"name\": \"New Delhi\",\n\t\t\"countryCode\": \"IN\",\n\t\t\"stateCode\": \"DL\",\n\t\t\"latitude\": \"28.63576000\",\n\t\t\"longitude\": \"77.22445000\"\n\t}\n]\n\n```\n\ngetCitiesOfCountry(countryCode)\n---------------\n\nIt accepts a valid `CountryCode` and returns *all Cities* as Array of JSON\n\ntype: **array of json | ICity**\n\n```js\n[\n\t{\n\t\t\"name\": \"New Delhi\",\n\t\t\"countryCode\": \"IN\",\n\t\t\"stateCode\": \"DL\",\n\t\t\"latitude\": \"28.63576000\",\n\t\t\"longitude\": \"77.22445000\"\n\t}\n]\n\n```\n\ngetAllCountries\n---------------\nIt returns **all Countries**\n\ntype: **array of json | ICountry**\n\n```js\n[\n\t{\n\t\t\"isoCode\": \"IN\",\n\t\t\"name\": \"India\",\n\t\t\"phonecode\": \"91\",\n\t\t\"flag\": \"🇮🇳\",\n\t\t\"currency\": \"INR\",\n\t\t\"latitude\": \"20.00000000\",\n\t\t\"longitude\": \"77.00000000\",\n\t\t\"timezones\": [\n\t\t\t{\n\t\t\t\t\"zoneName\": \"Asia\\/Kolkata\",\n\t\t\t\t\"gmtOffset\": 19800,\n\t\t\t\t\"gmtOffsetName\": \"UTC+05:30\",\n\t\t\t\t\"abbreviation\": \"IST\",\n\t\t\t\t\"tzName\": \"Indian Standard Time\"\n\t\t\t}\n\t\t]\n\t}\n]\n```\n\ngetAllStates\n---------------\nIt returns **all States**\n\ntype: **array of json | IState**\n\n```js\n[\n\t{\n\t\t\"name\": \"Delhi\",\n\t\t\"isoCode\": \"DL\",\n\t\t\"countryCode\": \"IN\",\n\t\t\"latitude\": \"28.70405920\",\n\t\t\"longitude\": \"77.10249020\"\n\n\t}\n]\n```\n\ngetAllCities\n---------------\nIt returns **all Cities**\n\ntype: **array of json | ICity**\n\n```js\n[\n\t{\n\t\t\"name\": \"Delhi\",\n\t\t\"isoCode\": \"DL\",\n\t\t\"countryCode\": \"IN\",\n\t\t\"latitude\": \"28.70405920\",\n\t\t\"longitude\": \"77.10249020\"\n\t}\n]\n```\n\nSpecial Thanks\n---------------\n\n[@baywet](https://github.com/baywet) - For mentoring Javascript to Typescript Conversion\n\n[@dr5hn](https://github.com/dr5hn) - For updated World Data Dictionary\n\n[taylorthurlow](https://github.com/taylorthurlow) - For pointing into right direction - Module Tree Shaking\n","readmeFilename":"README.md"}