{"_id":"country-code-flag-phone-extension-json","_rev":"2-96641e5006386c9a9f5b2bac6f8a38f0","name":"country-code-flag-phone-extension-json","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"country-code-flag-phone-extension-json","version":"1.0.0","description":"Javascript and JSON for Country code flag phone extension","main":"index.js","repository":{"type":"git","url":"git+https://github.com/mayank30/country-code-flag-phone-extention-json.git"},"keywords":["phone extension","phone","mask phone","country code flag","translations","timezone","search country","country","country-code","emoji","flag","iso-3166"],"author":{"name":"RMayank Jhawar","email":"mayankjhawar18@gmail.com","url":"https://github.com/mayank30"},"license":"ISC","bugs":{"url":"https://github.com/mayank30/country-code-flag-phone-extention-json/issues"},"homepage":"https://github.com/mayank30/country-code-flag-phone-extention-json#readme","gitHead":"f2b76415475a09a83afa349bba1be9f457224c5e","_id":"country-code-flag-phone-extension-json@1.0.0","_nodeVersion":"16.19.1","_npmVersion":"9.6.1","dist":{"integrity":"sha512-i017plxV/WN0cJ8jywLrbXLwf/8H54FcstepT8+kSsTKGFKoItGhns9QBJZjyTO21qzBXTxmNDSRjVEXlSQfrA==","shasum":"6a8e4b9aa210a57fe65951240a2d0519b55cd7bb","tarball":"https://registry.npmjs.org/country-code-flag-phone-extension-json/-/country-code-flag-phone-extension-json-1.0.0.tgz","fileCount":268,"unpackedSize":1157022,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDY5eTeVUz/MENJ5h2zajcWY1P4jmDTMB4oIQlafVrH/wIgDhZRFri9GdQBPuqDVBL2VYqqOVWwdZSGGYmuXtcrem4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFcMEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrk5BAAnRdMitIMFoaRe5Ys3IIwJpkzrBcPc1jGBKmXdK2jVSthyT+8\r\n7AXKpQUNdp+/zni/lZnpZJYGAStMSL/h8sTpnlLswC5PMcBSQyJ9dUC1Q2Zl\r\nvIfUHGeFnGh6fXgLUqpbgW21vkaB5YEPEpXLKJoEp/zPYupkj0J0h0Zvi44O\r\ngQLYG6wnAX8A2koaWmQIMvYCIGIXI17BS0rPSzAxHZbbMEalVBbkPGkuzlSV\r\n8rkujP0QFxO/G8lXfJE6Vu9fHuOriHYngTiGcIf5qfh04dHI5ng4lr+rMCbS\r\njWFdJAotEwz659SasHB4ttX6cDO3UkoXpnsvedbwX7MNffesSRIsCj3Bm4xM\r\ngUu/OhRmqT9pOByTP86LkKdPS39+VVeBue1tsGggpU+6CFHXaQ3PjXDBhJiB\r\nxLV3Mb5u37H5IZdzjMEf0IL4NUeGj/17iiwEPKzg2p1qpCUbeF+LAz8Y0mqo\r\nsb1BaAnltX84si7KNDvSAYaOsJ3Loz/Z/1I7XA1avjLjq7l5e2/sxWa6WItV\r\nEacClN0tiGFyPvWldJbf4fQrPnDRsaiVmyaN5Toh4fXJgEResfZLYWMgtP7U\r\njFB6gW8YkUAsrelSpn+ZM38/p42ghARvx6uYPmW01HzVU8lI/YhJBe6kqz5i\r\nKbSEiAfk3w0oEv6bnSGjO7OZRz6euuNV+Fc=\r\n=E5LV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mjhawar90","email":"mjhawar90@gmail.com"},"directories":{},"maintainers":[{"name":"mjhawar90","email":"mjhawar90@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/country-code-flag-phone-extension-json_1.0.0_1679147780069_0.1971475763550723"},"_hasShrinkwrap":false},"1.0.1":{"name":"country-code-flag-phone-extension-json","version":"1.0.1","description":"Javascript and JSON for Country code flag phone extension","main":"index.js","repository":{"type":"git","url":"git+https://github.com/mayank30/country-code-flag-phone-extention-json.git"},"keywords":["phone extension","phone","mask phone","country code flag","translations","timezone","search country","country","country-code","emoji","flag","iso-3166"],"author":{"name":"RMayank Jhawar","email":"mayankjhawar18@gmail.com","url":"https://github.com/mayank30"},"license":"ISC","bugs":{"url":"https://github.com/mayank30/country-code-flag-phone-extention-json/issues"},"homepage":"https://github.com/mayank30/country-code-flag-phone-extention-json#readme","gitHead":"63dada638999ea3e7dd3b05f1d577da8fab55581","_id":"country-code-flag-phone-extension-json@1.0.1","_nodeVersion":"16.19.1","_npmVersion":"9.6.1","dist":{"integrity":"sha512-qS2JwSE7fqd/PLxsbHiePjKTJIxBPrb8cR/SDddK1am6cK2Uxde3beUDt+TfYbEXgsRZchAW5bhNhO4xHLKuEA==","shasum":"eef3c8e82ae4ce13609a9ad300e8d108915c48a2","tarball":"https://registry.npmjs.org/country-code-flag-phone-extension-json/-/country-code-flag-phone-extension-json-1.0.1.tgz","fileCount":268,"unpackedSize":1157156,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA/oU7EH/xivThNE7Tqo1VK88B7YPzJhSSbtGK3iKmYgAiEA/iaBprtCjIvtCklIhOH9644k+BUhWk1izu4uvGuDyiI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFcZbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpTpQ//bT+eMEqNvfYLBrlmfFRAkBTYvXeNXF5mko/J5/HU4CnM0hwa\r\n6PIir1yDFlKeWCgTCYRo0tlAPbPYshXOjz7PCs1JNE5/5pzk9MA39nqpDpmN\r\nVSpZ8Keyj7NaJTAveAUCtVz5sZIwn1wREusDUQZYvNzmgfY9SYBNVBoQF+El\r\nQxSgjz8D0SG//ywd6jRenQwqAYBuJUO93lJeswRrp32S/yxirK6CUxBiXwjW\r\ng1o0hiFcHmKyLfm1tCXifpPrlm4nmMLsptG1SUKbnRUIXJ6GVSZX/aPqntn/\r\n656eANwzoc2NU/4ObbhvOleL4WgSOJDChWLD/Tnf2q7vjoBtT3tpQdrf/7wC\r\nqNDzbbMuMsRQD/Djfn4Ivim3jST4QDAn83aVojXYgDbppAFG1ze3kmMcJZT+\r\nB33G5AKaJyPiRq7/qAl/tFb0QUkP/gY+I/RW8QRceYFRvZCfHYZgr/uQiMHU\r\nzPqktT/lnpPaGRoPhZah/XIeZGyb+0fF6bZymdHlC0DNPaWzKJbq96GMn6TH\r\n9zg6fGefwAkPxGG+phtRGOOTXO4Fx9k2Hy04AlT2su3swA66KL/dxK9ChDFs\r\nuHU9vCScJ00VyTFjEvj25rYHnUAC6aqKEeM+vtDwqIC+Zpq/JHUR/oKgo29u\r\nY1qhv9ve7XHoRNwchPAEIZa6HQcptFic49M=\r\n=Fovn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mjhawar90","email":"mjhawar90@gmail.com"},"directories":{},"maintainers":[{"name":"mjhawar90","email":"mjhawar90@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/country-code-flag-phone-extension-json_1.0.1_1679148634884_0.3075836145195545"},"_hasShrinkwrap":false},"1.0.2":{"name":"country-code-flag-phone-extension-json","version":"1.0.2","description":"Javascript and JSON for Country code flag phone extension","main":"index.js","repository":{"type":"git","url":"git+https://github.com/mayank30/country-code-flag-phone-extention-json.git"},"keywords":["phone extension","phone","mask phone","country code flag","translations","timezone","search country","country","country-code","emoji","flag","iso-3166"],"author":{"name":"RMayank Jhawar","email":"mayankjhawar18@gmail.com","url":"https://github.com/mayank30"},"license":"ISC","bugs":{"url":"https://github.com/mayank30/country-code-flag-phone-extention-json/issues"},"homepage":"https://github.com/mayank30/country-code-flag-phone-extention-json#readme","gitHead":"0497bd43e2f6f2f6c0796a0c4ba27435a9c4cff4","_id":"country-code-flag-phone-extension-json@1.0.2","_nodeVersion":"16.19.1","_npmVersion":"9.6.1","dist":{"integrity":"sha512-93GaeBIk1/Pq6jjFvluMB9fXnE4rwcKSUYVNG6v7+Nefq2cyBJsj7gWG408Vt7XCZ/oeMcqayBCSV1DCjxDi3g==","shasum":"b7cbce004519017f89aea3930efe94fdc7830e55","tarball":"https://registry.npmjs.org/country-code-flag-phone-extension-json/-/country-code-flag-phone-extension-json-1.0.2.tgz","fileCount":267,"unpackedSize":888499,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGkNAjDOh/6tq7EzmT0F6uCyRev0hnm3bEi5eFHZ/OPCAiEAni2YH/tLUmZQqZXMQLWxGhmzbreZ0u3nT/CRK9NE3Qg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFf76ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpSKw//duCI8EJzbptnbYaFqH+UBvKUV+PbdGAUu6fDBErP20j74fdd\r\netnLbS5eLBwjHkZ7JFWzXf01RTHVlQXWq2AbeuXjEkXzdPDeZMa528oNykmo\r\ncGLjKr8y82XqhPVOGLNx4ieEzcLe8QqeB35aCdCWccBwNk22GB+jKBvcqly0\r\nN6Yv31tKM4otJZ1UmFkjQOQEAU7iWA4MSs/5+Xm1KBfNAZXe3N1rK0T5rkIU\r\nZrHRjQD3a3VTOFz+wzyUcsVK2GzTgBuCo7rtCBKwpQDhrBJl4kCqVSW1Xc+A\r\nxXy4s+0Zv/p5bkzU23b6VdwzLOO1xM+b8OVTopAjyHOalDL4/z5APa1KxcLw\r\ndv2mtIrFbMNsRprqWc8qgmyZY4e+pNLTCZgVj/Io/4dB6S22TZJOdB1cWy1C\r\nReuzhOsBPro1i93Vx8qG+Za3ba5t5yLD5jSZg5CEYzrSBZSOGHqvBxul2Sr8\r\nUGBYlLiLtJcxj/Z1AuvZ/HkmldbueQXT8197sxkSN9gdzrpK7QAFriNrLapS\r\nVr/BrA8wqTIgK3qDe3FXKveU/bgwQ+WX6im3/8Seop3jOlawcTWjEMYw1gXJ\r\n8jSoJGz/0Hq1xvvqwmwQRu3GZf2l0VLH7LtCMPB9gT6AaddAUggqzfDJlz7b\r\nRnfxKHlz17qSSdQ3QGoPfOyQCNKWPOxn2EA=\r\n=dh7z\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mjhawar90","email":"mjhawar90@gmail.com"},"directories":{},"maintainers":[{"name":"mjhawar90","email":"mjhawar90@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/country-code-flag-phone-extension-json_1.0.2_1679163130348_0.26215995998451946"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-18T13:56:20.069Z","1.0.0":"2023-03-18T13:56:20.356Z","modified":"2023-03-18T18:12:10.749Z","1.0.1":"2023-03-18T14:10:35.111Z","1.0.2":"2023-03-18T18:12:10.633Z"},"maintainers":[{"name":"mjhawar90","email":"mjhawar90@gmail.com"}],"description":"Javascript and JSON for Country code flag phone extension","homepage":"https://github.com/mayank30/country-code-flag-phone-extention-json#readme","keywords":["phone extension","phone","mask phone","country code flag","translations","timezone","search country","country","country-code","emoji","flag","iso-3166"],"repository":{"type":"git","url":"git+https://github.com/mayank30/country-code-flag-phone-extention-json.git"},"author":{"name":"RMayank Jhawar","email":"mayankjhawar18@gmail.com","url":"https://github.com/mayank30"},"bugs":{"url":"https://github.com/mayank30/country-code-flag-phone-extention-json/issues"},"license":"ISC","readme":"# Country Detail\n\nPurpose to provide SVG Flags, Unicode flag (emojis), Country code, Phone extension\n\n## Install using npm\n\n```bash\nnpm i country-code-flag-phone-extension-json\n```\n\n## Methods & Options\n\n```javascript\nconst country = require(\"country-code-flag-phone-extension-json\");\n\n// Get all countries.\ncountry.all();\n\n\nconst options  = {\n    filter: \"\", // If pass as string then full text search on db (name, subregion, region, currency)\n    filter: [], // if pass as array filter by ISO2 codes \n    keys: [], // define object keys to minify records,\n    sortBy: [], // sort by priortiy of mentioned ISO2 code.\n    limit: 5 // limit the returned object\n}\n```\n\n\n## Usage\n\n### Get all Countries\n\nList all the countries with details object\n\n```javascript\nconst country = require(\"country-code-flag-phone-extension-json\");\n\ncountry.all();\n\n// Return all the country with full detailed object\n```\n\n### Filter Countries by ISO2 Code\n\nFilter country by country codes\n\n```javascript\nconst country = require(\"country-code-flag-phone-extension-json\");\n\ncountry.all({\n  filter: [\"IN\", \"US\"],\n});\n\n// Return only two records filter by India and United States\n```\n\n### Filter Countries by plain text search\n\nQuick search in database\n\n```javascript\nconst country = require(\"country-code-flag-phone-extension-json\");\n\ncountry.all({\n  filter: \"india\",\n});\n\n// Return only one records filter search by india\n// It search on name, region, subregion, currency name\n```\n\n### Sort by Country\n\nIn some case, we want specific country to be on top of the dropdown and followed by all others.\n\n```javascript\nconst country = require(\"country-code-flag-phone-extension-json\");\n\ncountry.all({\n  sortBy: [\"US\", \"IN\"],\n});\n\n// Return all countried sort by US, IN and\n// all remaining countries ..\n```\n\n### Limit the record by Country\n\nTop 5 records\n\n```javascript\nconst country = require(\"country-code-flag-phone-extension-json\");\n\ncountry.all({\n    limit: 5\n})\n// Return top 5 countries from DB\n\ncountry.all({\n    limit: 5,\n    sortBy: [\"US\", \"IN\"]\n})\n// Return top 5 followed by - US, IN\n// and reminaing 3 countries from DB\n\ncountry.all({\n    filter: [\"IN\", \"US\", \"ZW\", \"YE\", \"AD\"]\n    limit: 5,\n    sortBy: [\"US\", \"IN\"]\n})\n\n// Return  5 records followed by - US, IN\n// and reminaing 3 filtered (AD, YE, ZW) countries from DB\n\n```\n\n### Minified the filted object or all countried from DV\n\n```javascript\nconst country = require(\"country-code-flag-phone-extension-json\");\n\ncountry.all({\n    keys: [\"id\", \"name\", \"dail_code\", \"mask\", \"emoji\", \"translations.kr\"],\n    limit: 5\n})\n// output\n/*\n{\n    \"rows\": [\n        {\n            \"id\": 1,\n            \"name\": \"Afghanistan\",\n            \"dail_code\": \"+93\",\n            \"mask\": \"+93-##-###-####\",\n            \"emoji\": \"🇦🇫\",\n            \"translations\": {\n                \"kr\": \"아프가니스탄\"\n            }\n        },\n        {\n            \"id\": 2,\n            \"name\": \"Aland Islands\",\n            \"dail_code\": \"+358\",\n            \"emoji\": \"🇦🇽\",\n            \"translations\": {\n                \"kr\": \"올란드 제도\"\n            }\n        },\n        {\n            \"id\": 3,\n            \"name\": \"Albania\",\n            \"dail_code\": \"+355\",\n            \"mask\": \"+355(###)###-###\",\n            \"emoji\": \"🇦🇱\",\n            \"translations\": {\n                \"kr\": \"알바니아\"\n            }\n        },\n        {\n            \"id\": 4,\n            \"name\": \"Algeria\",\n            \"dail_code\": \"+213\",\n            \"mask\": \"+213-##-###-####\",\n            \"emoji\": \"🇩🇿\",\n            \"translations\": {\n                \"kr\": \"알제리\"\n            }\n        },\n        {\n            \"id\": 5,\n            \"name\": \"American Samoa\",\n            \"dail_code\": \"+1684\",\n            \"mask\": \"+1(684)###-####\",\n            \"emoji\": \"🇦🇸\",\n            \"translations\": {\n                \"kr\": \"아메리칸사모아\"\n            }\n        }\n    ],\n    \"count\": 5\n}\n*/\n\ncountry.all({\n    limit: 5,\n    sortBy: [\"US\", \"IN\"]\n})\n// Return top 5 followed by - US, IN\n// and reminaing 3 countries from DB\n\ncountry.all({\n    filter: [\"IN\", \"US\", \"ZW\", \"YE\", \"AD\"]\n    limit: 5,\n    sortBy: [\"US\", \"IN\"]\n})\n\n// Return  5 records followed by - US, IN\n// and reminaing 3 filtered (AD, YE, ZW) countries from DB\n\n```\n\n## If you like it\n\nYou can buy me coffee \nhttps://www.buymeacoffee.com/mayankjhawar\n\nSupport me at Patreon\nhttps://patreon.com/mayank120\n\n## License\n\nMIT\n","readmeFilename":"README.md"}