{"_rev":"3-c4295163d066f31b30147c24ecb0b039","time":{"created":"2022-12-26T12:54:19.835Z","1.0.0":"2022-12-26T12:16:15.165Z","modified":"2022-12-26T12:54:20.301Z","1.0.1":"2022-12-26T12:54:20.124Z"},"_id":"@coffeebeanslabs/country_state_district","name":"@coffeebeanslabs/country_state_district","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@coffeebeanslabs/country_state_district","version":"1.0.1","description":"By this package you can get a list of countries, states and districts for marathi and hindi also","main":"index.js","scripts":{"test":"mocha tests/*.js -R spec --ui bdd --timeout 5000"},"devDependencies":{"chai":"^4.2.0","mocha":"^8.0.1"},"author":{"name":"sharmaPr25"},"license":"ISC","directories":{"test":"tests"},"repository":{"type":"git","url":"git+https://github.com/CoffeeBeansLabs/country-state-district.git"},"keywords":["nodejs","city","state","district"],"bugs":{"url":"https://github.com/CoffeeBeansLabs/country-state-district/issues"},"homepage":"https://github.com/CoffeeBeansLabs/country-state-district#readme","gitHead":"c6b5ae5010623283eb25974a68d640f5f849a6fc","_id":"@coffeebeanslabs/country_state_district@1.0.1","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-5FlCAWA+yyvytMexProPQyb/xn7OMa1/c+HSweGD2l71QLX38wY9bQaNQO3rw6snF4TCiZharlJS+SwTBU4xzA==","shasum":"ff348c1b04bca3219ce6960d9dd22fbbcf433946","tarball":"https://registry.npmjs.org/@coffeebeanslabs/country_state_district/-/country_state_district-1.0.1.tgz","fileCount":7,"unpackedSize":165155,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEEkYRpOs/3L6ukQa51S3Lhn8bWOiF27lWKJ3mGkZhmOAiBo8LhDvon/NgtrjPjPg//VSZz0H089ehwPAc5OvFNuQQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjqZl8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq0kw/9HN6WPqjlelEARczhK5vLOjEGpgyGaYyY6zfDSBUonWEwCc9H\r\nNZcnvnHpu0ZSCWE6PBBfoE+o63KnNL2VrRtwqup2L3mVVUUvkpeDrvB6dK4I\r\nIZfV1dZSNGrizb98Wbj6kYlYcO6fKkXxRM0RECB2/dp3mvibBlJM4aXpQghj\r\nfUi0mthvvfJEW+nbRMsmPtwCfgw2xyGYea+GNkmeOG5EJGF1Z+BGcW0XDUGO\r\na1Ghuir8TkbXfiPv6JOC1xK+bz1rZ4SyNhRfytMWpG+zPUApIUAiF7vFYvBN\r\nyEJUSKX9mXZAW+bJCQEbAaFR3o9bxRsmst6dNe0qXELpjr/SwbKItsF/9C8q\r\nttDXXaBmHuDnZw8NkBCtx0faYJKLrsp3ojzUGjzwht0eGMGulzZKi80yH5Nc\r\nBC1sL71tmUz8rEW1aAZz2mPRtxNgBtLcORLzkckt0xCMB2jCxKY1ozoQJodU\r\nl5k6BdfNGDWc06Nyn5Ez80SiIS90E4J/Ydka2ztvPMM7DCE458NxE+cF3tJu\r\nqrjtTCwCVjA9MeRbJat0ZWYSUjc1julq+/mLgjcppkjCTL1D3+lGfccWI/54\r\nKmO+fDtxgErt2eqjr86gwHtojxI+DcB9VheNX6X+bx0oqCEblwTMENSuQr9n\r\n6JEMI/Df2t3C+Qi0crJdhOlp7vC5cNDbSB4=\r\n=G5js\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"preetisharma","email":"inderivita@gmail.com"},"maintainers":[{"name":"imsheth","email":"contact@imsheth.com"},{"name":"raj.dhivya","email":"tech@coffeebeans.io"},{"name":"mitech11","email":"mitesh@coffeebeans.io"},{"name":"preetisharma","email":"inderivita@gmail.com"},{"name":"greeshma_p","email":"pillaigrshma@gmail.com"},{"name":"rishabhcb","email":"rishabh@coffeebeans.io"},{"name":"ayub-cb","email":"ayub@coffeebeans.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/country_state_district_1.0.1_1672059259882_0.5465107899569632"},"_hasShrinkwrap":false}},"maintainers":[{"name":"imsheth","email":"contact@imsheth.com"},{"name":"raj.dhivya","email":"tech@coffeebeans.io"},{"name":"mitech11","email":"mitesh@coffeebeans.io"},{"name":"preetisharma","email":"inderivita@gmail.com"},{"name":"greeshma_p","email":"pillaigrshma@gmail.com"},{"name":"rishabhcb","email":"rishabh@coffeebeans.io"},{"name":"ayub-cb","email":"ayub@coffeebeans.io"}],"description":"By this package you can get a list of countries, states and districts for marathi and hindi also","homepage":"https://github.com/CoffeeBeansLabs/country-state-district#readme","keywords":["nodejs","city","state","district"],"repository":{"type":"git","url":"git+https://github.com/CoffeeBeansLabs/country-state-district.git"},"author":{"name":"sharmaPr25"},"bugs":{"url":"https://github.com/CoffeeBeansLabs/country-state-district/issues"},"license":"ISC","readme":"# country_state_district\n> By this package you can get a list of countries, states and districts.\n> This package also allow to get districts and states in hindi and marathi also.\n\n\n\n\n**Note:** This plugin will return a list of countries, states and districts by using our few methods. This will work with Node.js\n=======\n\n## Installation\n\n```sh\nnpm i @coffeebeanslabs/country_state_district\n```\n\n## Documentation\n\n### Get list of countries\n\nIt returns the details of the countries.\n\n```js\nlet country_state_district = require('@coffeebeanslabs/country_state_district');\n\nlet countries = country_state_district.getAllCountries();\n```\n\n**Return value:**\n```json\n[\n  { \"id\": 1, \"name\": \"India\" }\n]\n```\n\n### Get list of states\n\nIt returns the details of the states.\n\n```js\nlet country_state_district = require('@coffeebeanslabs/country_state_district');\n\nlet states = country_state_district.getAllStates();\n```\n\n**Return value:**\n```json\n[\n  { \"id\": 32, \"name\": \"Tamil Nadu\", \"en_name\": \"Tamil Nadu\", \"hi_name\": \"तमिलनाडु\", \"mr_name\": \"तामिळनाडू\", \"country_id\": 1 }\n]\n```\n\n### Get list of states using Country ID\n\nIt accepts a valid `Country ID` and returns _State Details_\n\n```js\nlet country_state_district = require('@coffeebeanslabs/country_state_district');\n\nlet states = country_state_district.getStatesByCountryId(1);\n```\n\n**Return value:**\n```json\n[\n  { \"id\": 32, \"name\": \"Tamil Nadu\", \"en_name\": \"Tamil Nadu\", \"hi_name\": \"तमिलनाडु\", \"mr_name\": \"तामिळनाडू\", \"country_id\": 1 }\n]\n```\n\n### Get list of districts\n\nIt returns the details of the states.\n\n```js\nlet country_state_district = require('@coffeebeanslabs/country_state_district');\n\nlet districts = country_state_district.getAllDistricts();\n```\n\n**Return value:**\n```json\n[\n    { \"id\": 32, \"name\": \"Tamil Nadu\", \"en_name\": \"Tamil Nadu\", \"hi_name\": \"तमिलनाडु\", \"mr_name\": \"तामिळनाडू\", \"country_id\": 1 }\n]\n```\n\n### Get list of districts using State ID\n\nIt accepts a valid `State ID` and returns _District Details_\n\n```js\nlet country_state_district = require('@coffeebeanslabs/country_state_district');\n\nlet districts = country_state_district.getDistrictsByStateId(32);\n```\n\n**Return value:**\n```json\n[\n  { \"id\": 578, \"name\": \"Thoothukudi\", \"en_name\": \"Thoothukudi\", \"mr_name\": \"थुथुकुडी\", \"hi_name\": \"थुथुकुडी\", \"state_id\": 32 }\n]\n```\n","readmeFilename":"README.md"}