{"_id":"phone-service","_rev":"27-df98241b50011086360a626d328997c4","name":"phone-service","description":"手机号查询运营商，查询归属地","dist-tags":{"0.0.1":"0.0.1","latest":"4.0.6","0.1.0":"0.1.0","0.2.0":"0.2.0","1.0.0":"1.0.0","2.0.0":"2.0.0"},"versions":{"0.0.1":{"name":"phone-service","version":"0.0.1","description":"手机号查询运营商，查询归属地","main":"index.js","scripts":{"test":"mocha test/index.js"},"repository":{"type":"git","url":"https://github.com/navyxie/phone-service.git"},"keywords":["phone","归属地","手机号","运营商"],"devDependencies":{"mocha":"*","should":"*"},"author":{"name":"navyxie"},"license":"ISC","homepage":"https://github.com/navyxie/phone-service","maintainers":[{"name":"navyxie","email":"navyxie2010@gmail.com"}],"directories":{},"gitHead":"8efeb461b61bd257ab472dcbaedd3ef68ac3231a","bugs":{"url":"https://github.com/navyxie/phone-service/issues"},"_id":"phone-service@0.0.1","_shasum":"a3b86cbd2aa7eb5a99e798514724a4282d67c5b0","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"navyxie","email":"navyxie2010@gmail.com"},"dist":{"shasum":"a3b86cbd2aa7eb5a99e798514724a4282d67c5b0","tarball":"https://registry.npmjs.org/phone-service/-/phone-service-0.0.1.tgz","integrity":"sha512-k82i3llq37I034EgUUY5sHMI9zE6pG3Ssq2UsR2nvlWj/f4nU39b35x0pCk43TGAYYYy1eKUljFVnRN4E3FBMg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7uLjHXMX/jrVbCm8ktUEx0F1P+9JA34DwMqr+4oqlNgIgUo691T3pbTF6TceLpKhBTSdjPbXn+XrXlcr/3+jAcWc="}]}},"0.1.0":{"name":"phone-service","version":"0.1.0","description":"手机号查询运营商，查询归属地","main":"index.js","scripts":{"test":"mocha test/index.js"},"repository":{"type":"git","url":"https://github.com/navyxie/phone-service.git"},"keywords":["phone","归属地","手机号","运营商","移动","联通","电信"],"devDependencies":{"mocha":"*","should":"*"},"author":{"name":"navyxie"},"license":"ISC","homepage":"https://github.com/navyxie/phone-service","maintainers":[{"name":"navyxie","email":"navyxie2010@gmail.com"}],"directories":{},"gitHead":"c3cf1abbb3539546dd676d67e1d67e5c508188d7","bugs":{"url":"https://github.com/navyxie/phone-service/issues"},"_id":"phone-service@0.1.0","_shasum":"44c03c11b1397a2159cc11012682ee44a27f33f7","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"navyxie","email":"navyxie2010@gmail.com"},"dist":{"shasum":"44c03c11b1397a2159cc11012682ee44a27f33f7","tarball":"https://registry.npmjs.org/phone-service/-/phone-service-0.1.0.tgz","integrity":"sha512-OAIlfycBoO2VaLEc3s2M3OpnKdpg2vud8PjOTKRlVK95F/xXh0rCnI6OzQ2pfi0Aj0q0Hfy8lYHQHlS0Z2nuHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA7dpyQYyfzWkClL+ZIdtxxFuoTyVtXuT7//woSKT3bkAiBHtdSgmbTqijxCFAqHZdqYO54ZuGkzPgFsPTTGeCPdMw=="}]}},"0.2.0":{"name":"phone-service","version":"0.2.0","description":"手机号查询运营商，查询归属地","main":"index.js","scripts":{"test":"mocha test/index.js"},"repository":{"type":"git","url":"https://github.com/navyxie/phone-service.git"},"keywords":["phone","归属地","手机号","运营商","移动","联通","电信"],"devDependencies":{"mocha":"*","should":"*"},"author":{"name":"navyxie"},"license":"ISC","homepage":"https://github.com/navyxie/phone-service","maintainers":[{"name":"navyxie","email":"navyxie2010@gmail.com"}],"directories":{},"gitHead":"a1a829965616606ffebc916d9d568a013c5f3ea9","bugs":{"url":"https://github.com/navyxie/phone-service/issues"},"_id":"phone-service@0.2.0","_shasum":"dea1920fbc98c2db00040fb3809aa9d503d65175","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"navyxie","email":"navyxie2010@gmail.com"},"dist":{"shasum":"dea1920fbc98c2db00040fb3809aa9d503d65175","tarball":"https://registry.npmjs.org/phone-service/-/phone-service-0.2.0.tgz","integrity":"sha512-NjpUxrg6CvdUsCUhDFuAqY3K+uilojzpgVfGMvJqsMzTCFAWbln55fFdx9uxBPDvmZ5ca/y4kochS5/r8ptv4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClUdbXTq/HL416dKpceOO5J2meaiL8U/1zP6sJB6DXRAIhAM0sOtVqdhj11KsWt5clS2TpLwMrM3MpWPZHS30QlABl"}]}},"1.0.0":{"name":"phone-service","version":"1.0.0","description":"手机号查询运营商，查询归属地","main":"index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"https://github.com/navyxie/phone-service.git"},"keywords":["phone","归属地","手机号","运营商","移动","联通","电信"],"devDependencies":{"mocha":"^2.2.5","should":"^7.0.2"},"dependencies":{"request":"^2.60.0","iconv-lite":"^0.4.11","xml2js":"^0.4.9","async":"^1.4.0","underscore":"^1.8.3"},"author":{"name":"navyxie"},"license":"ISC","homepage":"https://github.com/navyxie/phone-service","maintainers":[{"name":"navyxie","email":"navyxie2010@gmail.com"}],"directories":{},"gitHead":"6c7251ca0ede6f2c9ce44d8afaf8879e19f5fba6","bugs":{"url":"https://github.com/navyxie/phone-service/issues"},"_id":"phone-service@1.0.0","_shasum":"626dfed39b2db8274c3cc28f0f76ca637753a148","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"navyxie","email":"navyxie2010@gmail.com"},"dist":{"shasum":"626dfed39b2db8274c3cc28f0f76ca637753a148","tarball":"https://registry.npmjs.org/phone-service/-/phone-service-1.0.0.tgz","integrity":"sha512-i9eWvZ6CoAYzplcrOoRnTs/tkzNYxvbS4ZPUKFNLwzFpUM9PiyV0vR0il14RzGRyD5dFKrw1lwnx4aXFrdpcvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWJ1EybqiGQ3/qdzLRmMyxt8vN9bFXH/hDZq4Vn/ejQAIhAKDBVbX5tzwUjdxpm4PggwKbiN4RJ5F2Iz/QFbHnOFUu"}]}},"2.0.0":{"name":"phone-service","version":"2.0.0","description":"手机号查询运营商，查询归属地","main":"index.js","scripts":{"test":"make test","cover":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"},"repository":{"type":"git","url":"https://github.com/navyxie/phone-service.git"},"keywords":["phone","归属地","手机号","运营商","移动","联通","电信","中国"],"devDependencies":{"mocha":"^2.2.5","coveralls":"^2.11.3","istanbul":"^0.3.17","should":"^7.0.2","muk":"^0.3.2"},"dependencies":{"async":"^1.4.0","iconv-lite":"^0.4.11","request":"^2.60.0","underscore":"^1.8.3","xml2js":"^0.4.9"},"author":{"name":"navyxie"},"license":"ISC","homepage":"https://github.com/navyxie/phone-service","maintainers":[{"name":"navyxie","email":"navyxie2010@gmail.com"}],"directories":{},"gitHead":"3b51ea6ff564eb384dcdbcee8a269c2608cc1a15","bugs":{"url":"https://github.com/navyxie/phone-service/issues"},"_id":"phone-service@2.0.0","_shasum":"79e742549f7733d7715c4ffd097a5a38f19fa5f7","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"navyxie","email":"navyxie2010@gmail.com"},"dist":{"shasum":"79e742549f7733d7715c4ffd097a5a38f19fa5f7","tarball":"https://registry.npmjs.org/phone-service/-/phone-service-2.0.0.tgz","integrity":"sha512-IE/K+RSjrz/S6bbHduOoVWJMqULjKYr+eBO7yWf9equNr5KrizC5qwUGEKihlHP7wRMXfoZf0lEyXs1VmW1T4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBnYi7+gxsKWRMAZx0xR1INhzoDzSOad/LIS6QHKdsu9AiEAtR2kFOS6vVt9FUf1DnBh2fwGtk1bJ/nXye0gRb/VTZo="}]}},"2.0.1":{"name":"phone-service","version":"2.0.1","description":"手机号查询运营商，查询归属地","main":"index.js","scripts":{"test":"make test","cover":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"},"repository":{"type":"git","url":"git+https://github.com/navyxie/phone-service.git"},"keywords":["phone","归属地","手机号","运营商","移动","联通","电信","中国"],"devDependencies":{"mocha":"^2.2.5","coveralls":"^2.11.3","istanbul":"^0.3.17","should":"^7.0.2","muk":"^0.3.2"},"dependencies":{"async":"^1.4.0","iconv-lite":"^0.4.11","request":"^2.60.0","underscore":"^1.8.3","xml2js":"^0.4.9"},"author":{"name":"navyxie"},"license":"ISC","homepage":"https://github.com/navyxie/phone-service","maintainers":[{"name":"navyxie","email":"navyxie2010@gmail.com"}],"directories":{},"gitHead":"28844bd8780f4c26d37e551cffb2a2b503e33b95","bugs":{"url":"https://github.com/navyxie/phone-service/issues"},"_id":"phone-service@2.0.1","_shasum":"0288e1da312218c78d428a7d2936bf7f2e5165f3","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"navyxie","email":"navyxie2010@gmail.com"},"dist":{"shasum":"0288e1da312218c78d428a7d2936bf7f2e5165f3","tarball":"https://registry.npmjs.org/phone-service/-/phone-service-2.0.1.tgz","integrity":"sha512-zhgQmGY4AobrlZ/H0sTbZFsdrA9GyUVh6YY57GN4r2VI/DacBMgGNriJBXHRIx3iZi8jred+0f7D8tg8RzKteQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID/T+LPUM+H389xD4C9LaPqO328oUN7KdjkwRFmtg06iAiBP3D+u0RwOkK3RnfCR2OSuYDsQ+4xjsHZ+u8+6l1+IPQ=="}]}},"2.0.2":{"name":"phone-service","version":"2.0.2","description":"手机号查询运营商，查询归属地","main":"index.js","scripts":{"test":"make test","cover":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"},"repository":{"type":"git","url":"https://github.com/navyxie/phone-service.git"},"keywords":["phone","归属地","手机号","运营商","移动","联通","电信","中国"],"devDependencies":{"mocha":"^2.2.5","coveralls":"^2.11.3","istanbul":"^0.3.17","should":"^7.0.2","muk":"^0.3.2"},"dependencies":{"async":"^1.4.0","iconv-lite":"^0.4.11","request":"^2.60.0","underscore":"^1.8.3","xml2js":"^0.4.9"},"author":{"name":"navyxie"},"license":"ISC","homepage":"https://github.com/navyxie/phone-service","maintainers":[{"name":"navyxie","email":"navyxie2010@gmail.com"}],"directories":{},"gitHead":"81c7381c0fdabf38142b0f3ac3c63e002aae8749","bugs":{"url":"https://github.com/navyxie/phone-service/issues"},"_id":"phone-service@2.0.2","_shasum":"b033f7c23e5b76db126bed15bcca857e5b776f51","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"navyxie","email":"navyxie2010@gmail.com"},"dist":{"shasum":"b033f7c23e5b76db126bed15bcca857e5b776f51","tarball":"https://registry.npmjs.org/phone-service/-/phone-service-2.0.2.tgz","integrity":"sha512-g4KLep9BYyGGRd74BBaNbWCV5geuhdSxDMWMtXKDuU7DNjcbSFU6MeFiVrtRTnWktjxBHUzTJ1CVBpGgUsl7Zg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAaRuSty9JAAe6UTzcg0B+wSPUzaGSoz2BHJNYBJg4pVAiEAvGKJ0xXwbp+x5fNi3gbhgGx1JlT08R6YOJ6Y5hK20Nw="}]}},"2.0.3":{"name":"phone-service","version":"2.0.3","description":"手机号查询运营商，查询归属地","main":"index.js","scripts":{"test":"make test","cover":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"},"repository":{"type":"git","url":"https://github.com/navyxie/phone-service.git"},"keywords":["phone","归属地","手机号","运营商","移动","联通","电信","中国"],"devDependencies":{"mocha":"^2.2.5","coveralls":"^2.11.3","istanbul":"^0.3.17","should":"^7.0.2","muk":"^0.3.2"},"dependencies":{"async":"^1.4.0","iconv-lite":"^0.4.11","request":"^2.60.0","underscore":"^1.8.3","xml2js":"^0.4.9"},"author":{"name":"navyxie"},"license":"ISC","homepage":"https://github.com/navyxie/phone-service","maintainers":[{"name":"navyxie","email":"navyxie2010@gmail.com"}],"directories":{},"gitHead":"493d29fd2752be605ca97f8d5b1eed1e3c65c559","bugs":{"url":"https://github.com/navyxie/phone-service/issues"},"_id":"phone-service@2.0.3","_shasum":"1e11800335b2bdac37914bd2574033a8c4058363","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"navyxie","email":"navyxie2010@gmail.com"},"dist":{"shasum":"1e11800335b2bdac37914bd2574033a8c4058363","tarball":"https://registry.npmjs.org/phone-service/-/phone-service-2.0.3.tgz","integrity":"sha512-SNfNKbO/bKMA0apWLD3IdkGgAvLH4N8RrsInHg8iO9UoNhD6MHmQEVzOPTyHNc52zgy3r1MiWTbOO2naqfMpdQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCO0ZT5ou5S8BWqeVWtk7lp8act716MWAr6+SZGajDF3QIgZD0mONEOEnujiKiueUofV01o5LYPo4RdKQqHjhqdRo4="}]}},"2.0.4":{"name":"phone-service","version":"2.0.4","description":"手机号查询运营商，查询归属地","main":"index.js","scripts":{"test":"make test","cover":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"},"repository":{"type":"git","url":"git+https://github.com/navyxie/phone-service.git"},"keywords":["phone","归属地","手机号","运营商","移动","联通","电信","中国"],"devDependencies":{"mocha":"^2.2.5","coveralls":"^2.11.3","istanbul":"^0.3.17","should":"^7.0.2","muk":"^0.3.2"},"dependencies":{"async":"^1.4.0","iconv-lite":"^0.4.11","request":"^2.60.0","underscore":"^1.8.3","xml2js":"^0.4.9"},"author":{"name":"navyxie"},"license":"ISC","homepage":"https://github.com/navyxie/phone-service","maintainers":[{"name":"navyxie","email":"navyxie2010@gmail.com"}],"directories":{},"gitHead":"44ad84f58a5ffbf2a013f0f9133dc1cf777d989c","bugs":{"url":"https://github.com/navyxie/phone-service/issues"},"_id":"phone-service@2.0.4","_shasum":"c88c68153412aff6f0bf443d3901df0aff4e8aac","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"navyxie","email":"navyxie2010@gmail.com"},"dist":{"shasum":"c88c68153412aff6f0bf443d3901df0aff4e8aac","tarball":"https://registry.npmjs.org/phone-service/-/phone-service-2.0.4.tgz","integrity":"sha512-v1hL9U+Gjn1LDEeG+h/R3VzSfJz54qUKQsZtu/juM2UY6DfjsXhEuCw/7Kk15h308h9SpYohdjyv5ri3HQeeDg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlFMljoyn0Z5R8GcXqMEhRn+X6WhdwluJhAok+UmH3RwIgcuSPVqU0NDuW5g4lSIWoTuxRbgn9bvvYkZgyzXrLajM="}]}},"3.0.0":{"name":"phone-service","version":"3.0.0","description":"手机号查询运营商，查询归属地","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/navyxie/phone-service.git"},"keywords":["phone","归属地","手机号","运营商","移动","联通","电信","中国"],"devDependencies":{"mocha":"^2.2.5","should":"^7.0.2","muk":"^0.3.2"},"dependencies":{"async":"^1.4.0","iconv-lite":"^0.4.11","request":"^2.60.0","underscore":"^1.8.3","xml2js":"^0.4.9"},"author":{"name":"navyxie"},"license":"ISC","homepage":"https://github.com/navyxie/phone-service","maintainers":[{"name":"navyxie","email":"navyxie2010@gmail.com"}],"directories":{},"gitHead":"fa493463180abaefe6a32f862269d977d6afe1c1","bugs":{"url":"https://github.com/navyxie/phone-service/issues"},"_id":"phone-service@3.0.0","_shasum":"534e50ddc54fee05223810190389cdbc42b50226","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"navyxie","email":"navyxie2010@gmail.com"},"dist":{"shasum":"534e50ddc54fee05223810190389cdbc42b50226","tarball":"https://registry.npmjs.org/phone-service/-/phone-service-3.0.0.tgz","integrity":"sha512-yVNlSalC1Lw0XcagvXavRdJeC6kBUBPVFRHCkBftnlZARprpPN5OgFXbsTd1dhSx5+UwXVajGU0JsN4C+wquaw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWnrvM8zlg+OGou29ffJwOjJMUM5EauyVPci91NciUqwIhAJWN+15EK1OTE4OruOMkfN0qtLIcjaYyj5pHTNiyrFR6"}]},"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/phone-service-3.0.0.tgz_1454754162403_0.4416132983751595"}},"3.0.1":{"name":"phone-service","version":"3.0.1","description":"手机号查询运营商，查询归属地","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/navyxie/phone-service.git"},"keywords":["phone","归属地","手机号","运营商","移动","联通","电信","中国"],"devDependencies":{"mocha":"^2.2.5","should":"^7.0.2","muk":"^0.3.2"},"dependencies":{"async":"^1.4.0","iconv-lite":"^0.4.11","request":"^2.60.0","underscore":"^1.8.3","xml2js":"^0.4.9"},"author":{"name":"navyxie"},"license":"ISC","homepage":"https://github.com/navyxie/phone-service","maintainers":[{"name":"navyxie","email":"navyxie2010@gmail.com"}],"directories":{},"gitHead":"285f23960cda274a7c53ce13f50ba530cc268740","bugs":{"url":"https://github.com/navyxie/phone-service/issues"},"_id":"phone-service@3.0.1","_shasum":"8e691f43d923ff784f432a21bf23f85bfc2bbbca","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"navyxie","email":"navyxie2010@gmail.com"},"dist":{"shasum":"8e691f43d923ff784f432a21bf23f85bfc2bbbca","tarball":"https://registry.npmjs.org/phone-service/-/phone-service-3.0.1.tgz","integrity":"sha512-uF/oUOGM4Jqg5YkAx3foEZjDaZLutktlumPOqfOst882yuprlig5Ur0UxVETQCM/YxGomzjImF8HIhZMU3tggA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDDDzZBe5obYpLuuhWb9L8o7AGf1UpGe4q7vvGSb3jOqAiBwTWdMm9H+F+CJjdrsd4Gk7GOxsF4O9yfm4pY7BOJelg=="}]},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/phone-service-3.0.1.tgz_1457977667607_0.9967999800574034"}},"3.0.2":{"name":"phone-service","version":"3.0.2","description":"手机号查询运营商，查询归属地","main":"index.js","scripts":{"test":"npm install && make test","cov":"npm install && ./node_modules/.bin/istanbul cover --report lcovonly ./node_modules/mocha/bin/_mocha  -- --timeout 50000 --recursive test/ -R spec && rm -rf ./coverage"},"repository":{"type":"git","url":"https://github.com/navyxie/phone-service.git"},"keywords":["phone","归属地","手机号","运营商","移动","联通","电信","中国"],"devDependencies":{"mocha":"^2.2.5","should":"^7.0.2","muk":"^0.3.2","istanbul":"^0.4.3"},"dependencies":{"async":"^1.4.0","iconv-lite":"^0.4.11","request":"^2.60.0","underscore":"^1.8.3","xml2js":"^0.4.9"},"author":{"name":"navyxie"},"license":"ISC","homepage":"https://github.com/navyxie/phone-service","maintainers":[{"name":"navyxie","email":"navyxie2010@gmail.com"}],"directories":{},"gitHead":"b3f81638876c2f5fcc5d4008eed66ae68d678f42","bugs":{"url":"https://github.com/navyxie/phone-service/issues"},"_id":"phone-service@3.0.2","_shasum":"e1895b9647192841bb6cd61ecc34eed4ec84c964","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"navyxie","email":"navyxie2010@gmail.com"},"dist":{"shasum":"e1895b9647192841bb6cd61ecc34eed4ec84c964","tarball":"https://registry.npmjs.org/phone-service/-/phone-service-3.0.2.tgz","integrity":"sha512-hrOqxoTr2vx8GOJMKV9UtLkZnldlCGLhmQuzxoAXeu4yrb8t/0uhST5bh6jTwIwFhG5F8eEbyOyVqkA6WonPUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGaeWh3dWgFK90fVrf20L5/n92lqxeUMzfItjjBQd+xqAiAZWeuoCHigIpZ6MqqNB/vzXPiBZzvGfO0ciROKNJNkjQ=="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/phone-service-3.0.2.tgz_1464203452367_0.4234976910520345"}},"3.0.3":{"name":"phone-service","version":"3.0.3","description":"手机号查询运营商，查询归属地","main":"index.js","scripts":{"test":"npm install && make test","cov":"npm install && ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"},"repository":{"type":"git","url":"https://github.com/navyxie/phone-service.git"},"keywords":["phone","归属地","手机号","运营商","移动","联通","电信","中国"],"devDependencies":{"mocha":"^2.2.5","should":"^7.0.2","muk":"^0.3.2","istanbul":"^0.4.3","coveralls":"2.11.9"},"dependencies":{"async":"^1.4.0","iconv-lite":"^0.4.11","request":"^2.60.0","underscore":"^1.8.3","xml2js":"^0.4.9"},"author":{"name":"navyxie"},"license":"ISC","homepage":"https://github.com/navyxie/phone-service","maintainers":[{"name":"navyxie","email":"navyxie2010@gmail.com"}],"directories":{},"gitHead":"9342c1d5b17e21fe55b81318407435cbed655801","bugs":{"url":"https://github.com/navyxie/phone-service/issues"},"_id":"phone-service@3.0.3","_shasum":"10e1cf32e4d5a4298c8194c43fb6cb29015011ec","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"navyxie","email":"navyxie2010@gmail.com"},"dist":{"shasum":"10e1cf32e4d5a4298c8194c43fb6cb29015011ec","tarball":"https://registry.npmjs.org/phone-service/-/phone-service-3.0.3.tgz","integrity":"sha512-xxfaMRibYBS6kj+dhgfbSCaxad/Opadkbd474vnKM3EP1IxZayuWw5CPF6HfRIrDK+wQ8WmR0LhVpQCO0irmJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDjk4V3A4KFR5MK8gqjgKHrfPnXClLHQFZCQQ6bYkQr5AiEAx5ZoYXgXnHlvsYp2+NM8r9q7vwbNjGtG6Zi+ZuJakeY="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/phone-service-3.0.3.tgz_1464359199206_0.9399340224917978"}},"4.0.0":{"name":"phone-service","version":"4.0.0","description":"手机号查询运营商，查询归属地","main":"index.js","scripts":{"test":"npm install && make test","cov":"npm install && ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"},"repository":{"type":"git","url":"git+https://github.com/navyxie/phone-service.git"},"keywords":["phone","归属地","手机号","运营商","移动","联通","电信","中国"],"devDependencies":{"mocha":"^2.2.5","should":"^7.0.2","muk":"^0.3.2","istanbul":"^0.4.3","coveralls":"2.11.9"},"dependencies":{"async":"^1.4.0","iconv-lite":"^0.4.11","request":"^2.60.0","underscore":"^1.8.3","xml2js":"^0.4.9","bluebird":"^3.4.1"},"author":{"name":"navyxie"},"license":"ISC","homepage":"https://github.com/navyxie/phone-service","maintainers":[{"name":"navyxie","email":"navyxie2010@gmail.com"}],"directories":{},"gitHead":"4de879024d00f5e0921d363be7dc55a0ee96f626","bugs":{"url":"https://github.com/navyxie/phone-service/issues"},"_id":"phone-service@4.0.0","_shasum":"42821eedd47e6fa4cea47f602ade9f676b9a80d7","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"navyxie","email":"navyxie2010@gmail.com"},"dist":{"shasum":"42821eedd47e6fa4cea47f602ade9f676b9a80d7","tarball":"https://registry.npmjs.org/phone-service/-/phone-service-4.0.0.tgz","integrity":"sha512-GC19IwS4pfwqdvFgvde3iIFMd/k54nQ3YikNVD/YeJ2j5ZEQrgnVUNbKlmfopzyGN++I0w173s4UWCQ4JEWsGg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDb+GMqWBly+2qSq8o1fVpYnLUIcHpOfW8aDbYD+bq3nQIhAKFgM22j7FgExt+G1w2hdh6BG9LrxNm2VMYQuG+JqX4i"}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/phone-service-4.0.0.tgz_1489994675445_0.8193742763251066"}},"4.0.1":{"name":"phone-service","version":"4.0.1","description":"手机号查询运营商，查询归属地","main":"index.js","scripts":{"test":"npm install && make test","cov":"npm install && ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"},"repository":{"type":"git","url":"git+https://github.com/navyxie/phone-service.git"},"keywords":["phone","归属地","手机号","运营商","移动","联通","电信","中国"],"devDependencies":{"mocha":"^2.2.5","should":"^7.0.2","muk":"^0.3.2","istanbul":"^0.4.3","coveralls":"2.11.9"},"dependencies":{"async":"^1.4.0","iconv-lite":"^0.4.11","request":"^2.60.0","underscore":"^1.8.3","xml2js":"^0.4.9","bluebird":"^3.4.1"},"author":{"name":"navyxie"},"license":"ISC","homepage":"https://github.com/navyxie/phone-service","maintainers":[{"name":"navyxie","email":"navyxie2010@gmail.com"}],"directories":{},"gitHead":"5601feb1b1d6862e23ef3c521fd1280a6f4080b7","bugs":{"url":"https://github.com/navyxie/phone-service/issues"},"_id":"phone-service@4.0.1","_shasum":"0cdd6830aaf5c01fbfd13cab66055b1383335fea","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"navyxie","email":"navyxie2010@gmail.com"},"dist":{"shasum":"0cdd6830aaf5c01fbfd13cab66055b1383335fea","tarball":"https://registry.npmjs.org/phone-service/-/phone-service-4.0.1.tgz","integrity":"sha512-ic5kVgmrDnUeDmdnv4Oo+rMvPrtULzAQGLluMDVny+U+iuajDsqRIR9RZfJsGIHTBYHwSSM6vpJX7X0O/JhF2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICuFQ1tWOR/xlU1uOxXXBW27Xbe8TJERIcl/0LEMJjFmAiEAiS/ZJvhj7304sQb/bEXPg3sWSC5DL2Nwf8fmBqKjsLc="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/phone-service-4.0.1.tgz_1495092814813_0.10288661625236273"}},"4.0.2":{"name":"phone-service","version":"4.0.2","description":"手机号查询运营商，查询归属地","main":"index.js","scripts":{"test":"npm install && make test","cov":"npm install && ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"},"repository":{"type":"git","url":"git+https://github.com/navyxie/phone-service.git"},"keywords":["phone","归属地","手机号","运营商","移动","联通","电信","中国"],"devDependencies":{"mocha":"^2.2.5","should":"^7.0.2","muk":"^0.3.2","istanbul":"^0.4.3","coveralls":"2.11.9"},"dependencies":{"async":"^1.4.0","iconv-lite":"^0.4.11","request":"^2.60.0","underscore":"^1.8.3","xml2js":"^0.4.9","bluebird":"^3.4.1"},"author":{"name":"navyxie"},"license":"ISC","homepage":"https://github.com/navyxie/phone-service","maintainers":[{"name":"navyxie","email":"navyxie2010@gmail.com"}],"directories":{},"gitHead":"450c9199ad43db358d62127986ad451cc25ddc29","bugs":{"url":"https://github.com/navyxie/phone-service/issues"},"_id":"phone-service@4.0.2","_shasum":"9f25b322feb66df07c36445f881ae9511300397e","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"navyxie","email":"navyxie2010@gmail.com"},"dist":{"shasum":"9f25b322feb66df07c36445f881ae9511300397e","tarball":"https://registry.npmjs.org/phone-service/-/phone-service-4.0.2.tgz","integrity":"sha512-HEoTLdMS4xw3OorB9nTG9PD/IUyBlPi4f5Ftv70/y8UPFrk5PDvBvGsoStiBQIMGy4HYCOCmlBCA64/96LPpyg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHotsc7aCK2Vq1d2U3UsdolWjW0wJG1sVEeAbpzh8mQWAiBkZ8v2A7VxjrOBLQ/x2Kxtj3cajITsDBAAX+XCAdj8Eg=="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/phone-service-4.0.2.tgz_1495093969576_0.9298554335255176"}},"4.0.3":{"name":"phone-service","version":"4.0.3","description":"手机号查询运营商，查询归属地","main":"index.js","scripts":{"test":"npm install && make test","cov":"npm install && ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"},"repository":{"type":"git","url":"git+https://github.com/navyxie/phone-service.git"},"keywords":["phone","归属地","手机号","运营商","移动","联通","电信","中国"],"devDependencies":{"mocha":"^2.2.5","should":"^7.0.2","muk":"^0.3.2","istanbul":"^0.4.3","coveralls":"2.11.9"},"dependencies":{"async":"^1.4.0","iconv-lite":"^0.4.11","request":"^2.60.0","underscore":"^1.8.3","xml2js":"^0.4.9","bluebird":"^3.4.1"},"author":{"name":"navyxie"},"license":"ISC","homepage":"https://github.com/navyxie/phone-service","maintainers":[{"name":"navyxie","email":"navyxie2010@gmail.com"}],"directories":{},"gitHead":"dacee9f3869774cd648cc8c51500b5ecab5750a7","bugs":{"url":"https://github.com/navyxie/phone-service/issues"},"_id":"phone-service@4.0.3","_shasum":"25daac34c7d955b04802c1b6459cd0f218c27401","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"navyxie","email":"navyxie2010@gmail.com"},"dist":{"shasum":"25daac34c7d955b04802c1b6459cd0f218c27401","tarball":"https://registry.npmjs.org/phone-service/-/phone-service-4.0.3.tgz","integrity":"sha512-c/3RVUvRBKeWt+NBLUuIFsWOdZCXPq81eeaOfI4AXQWjY4RK2zDarhuWZoX89Q4m40qL0ng6j4dchwBEGI+6JQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4aVVXtCVZxT4CsIvo+EUFn8BKF8TxluyzdaVXR5j2uQIhAIvFqxD3x0TzdO8albL9b1mqz3N8mgJP+Fapf+3DdgX/"}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/phone-service-4.0.3.tgz_1495094624250_0.08530425070784986"}},"4.0.4":{"name":"phone-service","version":"4.0.4","description":"手机号查询运营商，查询归属地","main":"index.js","scripts":{"test":"npm install && make test","cov":"npm install && ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"},"repository":{"type":"git","url":"git+https://github.com/navyxie/phone-service.git"},"keywords":["phone","归属地","手机号","运营商","移动","联通","电信","中国"],"devDependencies":{"mocha":"^2.2.5","should":"^7.0.2","muk":"^0.3.2","istanbul":"^0.4.3","coveralls":"2.11.9"},"dependencies":{"async":"^1.4.0","iconv-lite":"^0.4.11","request":"^2.60.0","underscore":"^1.8.3","xml2js":"^0.4.9","bluebird":"^3.4.1"},"author":{"name":"navyxie"},"license":"ISC","homepage":"https://github.com/navyxie/phone-service","maintainers":[{"name":"navyxie","email":"navyxie2010@gmail.com"}],"directories":{},"gitHead":"401d26a92b61bc67071393278f2a34ffcf473ed0","bugs":{"url":"https://github.com/navyxie/phone-service/issues"},"_id":"phone-service@4.0.4","_shasum":"ea49b3258611574acbc1cefa3e4629c0b4310c0f","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.1","_npmUser":{"name":"navyxie","email":"navyxie2010@gmail.com"},"dist":{"shasum":"ea49b3258611574acbc1cefa3e4629c0b4310c0f","tarball":"https://registry.npmjs.org/phone-service/-/phone-service-4.0.4.tgz","integrity":"sha512-QF+P0trUEkNMOw2iGu+nUawyCdn3S+225K9rlOBskK2GuYCG5aa3j2G3DF6oNZ1xrBQduYPEg9buSRHy97YOHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGJoqwZg7SIi+toyfrzf9/MfKjjxLNLM//Fzqko+TIYIAiEAySontVu51chjQC1gy6XXi+RPIapGc7kEjVOWTls5y9w="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/phone-service-4.0.4.tgz_1514357737275_0.8121999686118215"}},"4.0.5":{"name":"phone-service","version":"4.0.5","description":"手机号查询运营商，查询归属地","main":"index.js","scripts":{"test":"npm install && make test","cov":"npm install && ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"},"repository":{"type":"git","url":"git+https://github.com/navyxie/phone-service.git"},"keywords":["phone","归属地","手机号","运营商","移动","联通","电信","中国"],"devDependencies":{"mocha":"^2.2.5","should":"^7.0.2","muk":"^0.3.2","istanbul":"^0.4.3","coveralls":"2.11.9"},"dependencies":{"async":"^1.4.0","iconv-lite":"^0.4.11","request":"^2.60.0","underscore":"^1.8.3","xml2js":"^0.4.9","bluebird":"^3.4.1"},"author":{"name":"navyxie"},"license":"ISC","homepage":"https://github.com/navyxie/phone-service","maintainers":[{"name":"navyxie","email":"navyxie2010@gmail.com"}],"directories":{},"gitHead":"63a4826f84c0402c4e74102963cae909434bb3e4","bugs":{"url":"https://github.com/navyxie/phone-service/issues"},"_id":"phone-service@4.0.5","_shasum":"0ae47ddb828b400aa535509341892507e7f3181d","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.1","_npmUser":{"name":"navyxie","email":"navyxie2010@gmail.com"},"dist":{"shasum":"0ae47ddb828b400aa535509341892507e7f3181d","tarball":"https://registry.npmjs.org/phone-service/-/phone-service-4.0.5.tgz","integrity":"sha512-qxkdbuWd4V/rl69pYfnp+YDkMADaEkWne6k64MMwtzYYcy4jirpo7dijfbjnV1NNIf4R1G1zW5wdcTpuv2YpdA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0GRvSmY9hLOtSDMHZj4iUrLuz0lGiLCACK0kmv7wAeAIhAKiGhomKXVjUX3nxojyiZRr6TTTnaVSiVbzq5GmjrTMo"}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/phone-service-4.0.5.tgz_1514360227492_0.8169902393128723"}},"4.0.6":{"name":"phone-service","version":"4.0.6","description":"手机号查询运营商，查询归属地","main":"index.js","scripts":{"test":"npm install && make test","cov":"npm install && ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"},"repository":{"type":"git","url":"git+https://github.com/navyxie/phone-service.git"},"keywords":["phone","归属地","手机号","运营商","移动","联通","电信","中国"],"devDependencies":{"mocha":"^2.2.5","should":"^7.0.2","muk":"^0.3.2","istanbul":"^0.4.3","coveralls":"2.11.9"},"dependencies":{"async":"^1.4.0","iconv-lite":"^0.4.11","request":"^2.60.0","underscore":"^1.8.3","xml2js":"^0.4.9","bluebird":"^3.4.1"},"author":{"name":"navyxie"},"license":"ISC","homepage":"https://github.com/navyxie/phone-service","maintainers":[{"name":"navyxie","email":"navyxie2010@gmail.com"}],"directories":{},"gitHead":"1fe3caaee9fbe63cd58ebfdb36551627a324f9be","bugs":{"url":"https://github.com/navyxie/phone-service/issues"},"_id":"phone-service@4.0.6","_shasum":"42faa4aff9c659754be8acb1cd7b755acdcc95c1","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.1","_npmUser":{"name":"navyxie","email":"navyxie2010@gmail.com"},"dist":{"shasum":"42faa4aff9c659754be8acb1cd7b755acdcc95c1","tarball":"https://registry.npmjs.org/phone-service/-/phone-service-4.0.6.tgz","integrity":"sha512-XTyVUDS8MPFvjzjf+b3nXX8FrELZz4tw6RmR64UXOQTuDwndZBKXQ9D+OoGJMR6VCTQ8kVVzZOxWH6T6m8v5Rg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzDSuYGzcVr52BcZ2HC2vFaBXvFnOQLQCLZ77XMmcmgQIhAKzj00VTGhipMfTfuMHZ0NekCKdRDHcV0Y//UkmlihDQ"}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/phone-service-4.0.6.tgz_1514373481657_0.7903590938076377"}}},"readme":"# 通过手机号查询运营商以及号码归属地\n\n[![Build Status via Travis CI](https://travis-ci.org/navyxie/phone-service.svg?branch=master)](https://travis-ci.org/navyxie/phone-service) [![Coverage Status](https://coveralls.io/repos/github/navyxie/phone-service/badge.svg?branch=master)](https://coveralls.io/github/navyxie/phone-service?branch=master) [![NPM version](https://badge.fury.io/js/phone-service.png)](http://badge.fury.io/js/phone-service)\n\n在很多行业很多项目，比如电商，比如金融，比如O2O等，在用户注册这一块会经常用到手机号。如何判断一个手机号是否存在？在特殊产品需求条件下，我们需要区分用户的运营商（移动、联通、电信），甚至区分用户省份，乃至城市，来方便产品，运营同学对用户进行地区化，个性化服务。为了解决这样的业务、产品需求，就动手写了这个模块。\n\n### 安装:npm install phone-service\n\n## [API](#API)\n\n- [query](#query)\n\n- [isPhone](#isPhone)\n\n- [isChinaMobile](#isChinaMobile)\n\n- [isChinaTelecom](#isChinaTelecom)\n\n- [isChinaUnicom](#isChinaUnicom)\n\n\n## [插件编写](#plugin)\n\n- [add](#add)\n\n- [check](#check)\n\n- [delete](#delete)\n\n\n## 工具函数\n\n[util](#util)\n\n\n<a name=\"API\" />\n\n## API使用例子\n\n<a name=\"query\" />\n\n[query]: 查询手机号详细信息, 异步函数\n\n可选参数option说明\n\n```js\n/**\n*option = > {\n\tparallel:2,//插件通道并发请求数,默认是2,当为0时使用最大(所有可用插件)并发数同时发起查询请求。\n\ttimeout:null,//响应超时时间\n\tmodel:0,//获取手机号码信息模式,目前支持3种：0->只获取手机号运营商,1->获取手机号运营商以及省份,2->获取手机号运营商、省份以及城市(地级市)\n\tplugins:[]//指定使用哪些插件通道(当某些通道出问题时，用户可以指定只用这些通道)\n}\n*/\n```\n\n查询手机号运营商\n\n```js\nvar phoneService = require('phone-service');\nvar option = {};\nphoneService.query(15900000000,option,function(err,data){\n\t//data=>{supplier:\"中国移动\",phone:15900000000,abbreviation:'China_Mobile'}\n});\n\n// promise\nphoneService.query(15900000000,option)\n\t.then(function (data) {\n\t\t//data=>{supplier:\"中国移动\",phone:15900000000,abbreviation:'China_Mobile'}\n\t})\n```\n\n查询手机号运营商以及省份\n\n```js\nvar phoneService = require('phone-service');\nvar option = {model:1};\nphoneService.query(15900000000,option,function(err,data){\n\t//data=>{supplier:\"中国移动\",province:'广东',phone:15900000000,abbreviation:'China_Mobile'}\n});\n```\n\n查询手机号运营商、省份以及城市(地级市)\n\n```js\nvar phoneService = require('phone-service');\nvar option = {model:2};\nphoneService.query(15900000000,option,function(err,data){\n\t//data=>{supplier:\"中国移动\",province:'广东',city:'中山',phone:15900000000,abbreviation:'China_Mobile'}\n});\n```\n\n<a name=\"isPhone\" />\n\n[isPhone]: 判断是否为合法手机号,同步函数\n\n```js\nvar phoneService = require('phone-service');\nphoneService.isPhone(15900000000) === true\n```\n\n<a name=\"isChinaMobile\" />\n\n[isChinaMobile]: 判断是否为中国移动手机号,同步函数\n\n```js\nvar phoneService = require('phone-service');\nphoneService.isChinaMobile(15900000000) === true\n```\n\n<a name=\"isChinaTelecom\" />\n\n[isChinaTelecom]: 判断是否为中国电信手机号,同步函数\n\n```js\nvar phoneService = require('phone-service');\nphoneService.isChinaTelecom(15900000000) === false;\n```\n\n<a name=\"isChinaUnicom\" />\n\n[isChinaUnicom]: 判断是否为中国联通手机号,同步函数\n\n```js\nvar phoneService = require('phone-service');\nphoneService.isChinaUnicom(15900000000) === false;\n```\n\n<a name=\"plugin\" />\n\n## 插件编写(高级功能)\n\n### 插件扩展开发\n\n如果模块自带的插件不满足或者被插件对应的平台屏蔽了，使用者可以自己开发插件来完成工作。\n\n<a name=\"add\" />\n\n[add]: 增加插件\n\n```js\n//插件开发 demo\nvar phoneService = require('phone-service');\nvar util = phoneService.util;\nvar plugin = phoneService.plugin;//插件对象\nvar pluginMock = {\n\tname:'navy',//插件名字\n\tparse:function(phone,cb){\n\t\t//数据解析，返回json.当所编写的插件:\n\t\t//1.只返回手机号服务商(即插件的model定义为0)时，返回的对象中必须包含key:util.getSupplierKey()\n\t\t//2.返回手机号服务商和归属省份(即插件的model定义为1)时,返回的对象中必须包含key:util.getSupplierKey(),util.getProvinceKey()\n\t\t//3.返回手机号服务商和归属省份以及归属城市(即插件的model定义为2)时,返回的对象中必须包含key:util.getSupplierKey(),util.getProvinceKey(),util.getCityKey()\n\t\tvar result = {};\n\t\tresult[util.getSupplierKey()] = '移动';\n\t\tresult[util.getProvinceKey()] = '广东';\n\t\tresult[util.getCityKey()] = '广州';\n\t\tcb(null,result);\n\t}\n\tmodel:2,//model可取值:0,1,2，说明请看上面parse函数\n\turl:function(phone){\n\t\treturn 'http://xxxx.com?phone='+phone;//返回请求的url\n\t},\n\toption:{\n\t\t//node request module request method param.\n\t\theaders:{\"User-Agent\":\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/41.0.2272.76 Chrome/41.0.2272.76 Safari/537.36\"},\n\t\tencoding:null\n\t}\n};\nplugin.add(pluginMock);//注册插件\n```\n\n<a name=\"check\" />\n\n[check]: 检查插件编写是否正确\n\n```js\nplugin.check('navy',function(err,data){\n\tif(!err){\n\t\t//plugin is ok;\n\t}\n})\n//使用刚才注册的插件\nphoneService.query(15900000000,{plugins:['navy']},function(err,data){\n\t//todo\n})\n```\n\n<a name=\"delete\" />\n\n[delete]: 卸载模块自带的插件\n\n当模块自带的插件或者使用者自己开发的插件出问题时（比如被插件对应的平台屏蔽），这时候在调用api前可以卸载有问题的模块\n\n```js\nplugin.delete('navy');//卸载自己写的插件\nplugin.delete('360');//卸载模块自带的插件\n//调用query方式时将不再使用360插件了\nphoneService.query(15900000000,function(err,data){\n\t//todo\n})\n```\n\n### 工具对象\n\n<a name=\"util\" />\n\n```js\nvar phoneService = require('phone-service');\nphoneService.util.getSupplierKey();//获取服务商返回的key\nphoneService.util.getProvinceKey();//获取省份返回的key\nphoneService.util.getCityKey();//获取城市（地级市）返回的key\n```\n\n## test\n```js\n//test\nnpm test\n//code coverage\n//npm run cov\n```\n\n## code coverage\n\n```html\n=============================== Coverage summary ===============================\nStatements   : 87.41% ( 354/405 )\nBranches     : 80.83% ( 156/193 )\nFunctions    : 95.95% ( 71/74 )\nLines        : 87.41% ( 354/405 )\n================================================================================\n```\n\n**发布logs**\n- 4.0.0 query api 支持promise方式调用\n- 3.0.1 添加parallel参数为0时开启最大（当前支持插件）并发数同时发起查询请求\n- 3.0.0 修复重大的bug,plugin下try catch 没有return。建议立马升级至3.0.0。\n","maintainers":[{"name":"navyxie","email":"navyxie2010@gmail.com"}],"time":{"modified":"2022-06-23T21:23:25.607Z","created":"2015-07-21T04:42:27.086Z","0.0.1":"2015-07-21T04:42:27.086Z","0.1.0":"2015-07-21T05:04:46.131Z","0.2.0":"2015-07-21T06:07:46.355Z","1.0.0":"2015-07-23T01:38:36.295Z","2.0.0":"2015-07-24T10:40:33.716Z","2.0.1":"2015-07-24T20:59:06.684Z","2.0.2":"2015-08-24T11:52:23.427Z","2.0.3":"2015-09-02T03:20:04.592Z","2.0.4":"2015-10-25T13:07:38.975Z","3.0.0":"2016-02-06T10:22:44.567Z","3.0.1":"2016-03-14T17:47:49.765Z","3.0.2":"2016-05-25T19:10:55.100Z","3.0.3":"2016-05-27T14:26:41.199Z","4.0.0":"2017-03-20T07:24:37.262Z","4.0.1":"2017-05-18T07:33:35.068Z","4.0.2":"2017-05-18T07:52:51.586Z","4.0.3":"2017-05-18T08:03:46.548Z","4.0.4":"2017-12-27T06:55:37.469Z","4.0.5":"2017-12-27T07:37:07.669Z","4.0.6":"2017-12-27T11:18:01.770Z"},"homepage":"https://github.com/navyxie/phone-service","keywords":["phone","归属地","手机号","运营商","移动","联通","电信","中国"],"repository":{"type":"git","url":"git+https://github.com/navyxie/phone-service.git"},"author":{"name":"navyxie"},"bugs":{"url":"https://github.com/navyxie/phone-service/issues"},"license":"ISC","readmeFilename":"README.md","users":{"navyxie":true}}