{"_id":"2factor","_rev":"7-56b55fe577ed6a53867aa33c4aca6165","name":"2factor","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.0":{"name":"2factor","version":"1.0.0","description":"Simple node library for sending transactional/otp/promotional SMS in India using the 2factor.in APIs","main":"index.js","directories":{"test":"tests"},"scripts":{"test":"mocha tests","test-module":"set APIKEY=<REPLACE WITH API KEY> && set TESTPHONE=<PHONE TO USE AS RECIPIENT> && mocha tests"},"repository":{"type":"git","url":"git+https://github.com/hanut/2factor-node.git"},"keywords":["2factor.in","sms","api","send","sms","otp","via","sms","otp","otp","sms","promotional","sms","transactional","sms"],"author":{"name":"Hanut Singh Gusain"},"license":"MIT","bugs":{"url":"https://github.com/hanut/2factor-node/issues"},"homepage":"https://github.com/hanut/2factor-node#readme","devDependencies":{"chai":"^4.1.2","mocha":"^5.1.1"},"dependencies":{"request":"^2.85.0"},"gitHead":"754ee1f888887513f0f39a45e60cd81b59982530","_id":"2factor@1.0.0","_npmVersion":"6.0.0","_nodeVersion":"8.11.1","_npmUser":{"name":"hanut","email":"hanutsingh@gmail.com"},"dist":{"integrity":"sha512-yoPKF6Z1yQKN2+srcZj1Kt1+POLp7pZ9q6NUJ40Q7qtMMNjI+Q5ZTVEb6/7ynOhw+YHoda7RgbzX76zfhLZOWQ==","shasum":"fa7895eca5932ef39a89f366ba7ab6a5d80dd45f","tarball":"https://registry.npmjs.org/2factor/-/2factor-1.0.0.tgz","fileCount":5,"unpackedSize":11134,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7jY/CRA9TVsSAnZWagAAzvgP/3BuMHRJV0dTxkvVH6DZ\ng2u9qlafttkeA6ugKDA8w7II6Tjg+mb8gDXM6fNGxSMoqHjwdthVZMlzHxm+\n1W2VcvTG5BXedLN8Y7ucbW0549H4NgCbTpsGHUgjQZkG3ioYYM47gxEMDx9Q\nKEso2X8Uo0GpuUNgSJ5bYAMO5xt08AQIVihoJy0qGbkSEfxwrOfJfAhXWObi\n71PqXaVxbUyVmfgSz5p++0nmpcwzMxy9Ne5xd0R1cvRoF3olSup7sUaa+3Il\ns53zbpquja6qeqxqApMuSx1LLyho5s8eYTHEC57QYw+Bub+lc5SMfOdgjYCv\nLRUUyDbljlJi78vdCdbx6Uu9w+8zpyBNcLE+8b+4dVc0IHp3XhjVeXLxBWav\nAQHHp4ljInQc0zOZUhmltx1WsJ53+P7d345aEN17MR5jYSxxlVHRG+5T18cV\nORyDRWyieGEAICN3B9BsxdL25+XPhrGcqa279cEK/AlEDe9Qw4wNAkMk76h8\nJXqkM5RsTsogxXpjF/oKyBl7+wAxA1RPP2TcKirwGCxRdCZeVzQeuZvK8iAx\n5GgsN9b/waPj14KK97upjuuMOensoRN8ZCpaynNvIb1CjDpKX182niOyJY0t\n8BzG18nAPA8ZC/2pvRwU9KU8nFt6CSur/6hIorZFuB6I8Xk8uyfSj+7QZrWb\n+f1s\r\n=IkhP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDLfsDmbvxz6cdLXIEksaegiueg+m7mNbBqOcLwA+u2AIgH4ZicnhlqaO0VXM0nuNNYgpjXhGrGtPscsLQ247mi/k="}]},"maintainers":[{"name":"hanut","email":"hanutsingh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/2factor_1.0.0_1525560893792_0.7518530432138413"},"_hasShrinkwrap":false},"1.0.1":{"name":"2factor","version":"1.0.1","description":"Simple node library for sending transactional/otp/promotional SMS in India using the 2factor.in APIs","main":"index.js","directories":{"test":"tests"},"scripts":{"test":"mocha tests","test-module":"set APIKEY=<REPLACE WITH API KEY> && set TESTPHONE=<PHONE TO USE AS RECIPIENT> && mocha tests"},"repository":{"type":"git","url":"git+https://github.com/hanut/2factor-node.git"},"keywords":["2factor.in","sms","api","send","sms","otp","via","sms","otp","otp","sms","promotional","sms","transactional","sms"],"author":{"name":"Hanut Singh Gusain"},"license":"MIT","bugs":{"url":"https://github.com/hanut/2factor-node/issues"},"homepage":"https://github.com/hanut/2factor-node#readme","devDependencies":{"chai":"^4.1.2","mocha":"^5.1.1"},"dependencies":{"request":"^2.85.0"},"gitHead":"b6995cd2136292cadc283fa540f6216f5b97d8e8","_id":"2factor@1.0.1","_npmVersion":"6.0.0","_nodeVersion":"8.11.1","_npmUser":{"name":"hanut","email":"hanutsingh@gmail.com"},"dist":{"integrity":"sha512-uTNuv4ee/smvPM1zyqBCPQuaoAznlUluJh4Ly7UomWdcGvCYzDYWYr4iWNtLYvP6qfp+k2uSFp46qULsieKBZA==","shasum":"1bc271a087dc68334ebcb537201fbdb6ab4cbf99","tarball":"https://registry.npmjs.org/2factor/-/2factor-1.0.1.tgz","fileCount":5,"unpackedSize":11833,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7jldCRA9TVsSAnZWagAA9TIP/3roSVITQyZSRg3WiSOR\nun4YHGsi4LKFaZvAWmC/vb2CwZ9BuVq8twXKSSMwMqkozqm+aWBwT3uU8lD/\nqqy/a+vAg111XXgDBCrB46I4pU2bzBQhTceP4CtcdO8kLeVuLoQ5CTifJxAD\npEIiNDWd/HD/PlHjDLi0bZ2HHoMwlh7nc1IrmoKBTQ66pzYQL5QTDyuMmDZM\nnSMqYvlVpbVyxZ+8rqDqG3FvOPnKIF67BynclJ8gH9sU89C10hBEWvDtBrEl\nW3FeMk653oDuPR1DUnYlj29IUl/xMin8NYuj4rjkAZ1RtYSV2KoIPwLXlZKJ\nx4UbymJDKel/uC+nOcaiynghxYDUsqmHpsmYAR4AaJ+YmH+vR34FubdYQnGQ\nHTgzoBrcU39td9TTLdDNjM3pgYiBLkeDlksFAKyE8KKDS63ts6erH73eNlpy\nmnJf8E2kQEP5gMOlPOMhacSmASJKTkmG+CsEj8dqEQsrc9XYeezNr8wTLKqu\nYPHyrjTt1uQeFpaDGXZbFZ3aX/GKw8LM0qkdtngv/w4/Ha6bbyTgJK9y8WsF\nYWpZ5j2m/7Mte/5gBoUeuNi8QFHgU4bXYOiZGzsT4eS7oGQkl+ldzGvSXp1g\nID55ggikP6wkq/uP64niJTYL0vcYhQYTtkco91AemtkQoqLhv3ZHUGMvC0M3\nRgTu\r\n=Q5DC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnRiKLqQA752gqn8tp9cOLTYAGUjbMMTbUhkr6ICecoQIhAP+NM+WQ84kF0lQI/FCnI0nFmo3XTkg1PwiprXx93qE4"}]},"maintainers":[{"name":"hanut","email":"hanutsingh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/2factor_1.0.1_1525561692751_0.3083204995230715"},"_hasShrinkwrap":false},"1.0.2":{"name":"2factor","version":"1.0.2","description":"Simple node library for sending transactional/otp/promotional SMS in India using the 2factor.in APIs","main":"index.js","directories":{"test":"tests"},"scripts":{"test":"mocha tests","test-module":"set APIKEY=<REPLACE WITH API KEY> && set TESTPHONE=<PHONE TO USE AS RECIPIENT> && mocha tests"},"repository":{"type":"git","url":"git+https://github.com/hanut/2factor-node.git"},"keywords":["2factor.in","sms","api","send","sms","otp","via","sms","otp","otp","sms","promotional","sms","transactional","sms"],"author":{"name":"Hanut Singh Gusain"},"license":"MIT","bugs":{"url":"https://github.com/hanut/2factor-node/issues"},"homepage":"https://github.com/hanut/2factor-node#readme","devDependencies":{"chai":"^4.1.2","mocha":"^5.1.1"},"dependencies":{"request":"^2.85.0"},"gitHead":"7cc63e193aaa3e71bbe44cc18e94fa1f4a3ef213","_id":"2factor@1.0.2","_npmVersion":"6.0.0","_nodeVersion":"8.11.1","_npmUser":{"name":"hanut","email":"hanutsingh@gmail.com"},"dist":{"integrity":"sha512-oJdzO67MpaarmfnPhhLAvFGdUOaDR2diI1mybqZCZtAecMFLpicOXR8vmLuswnWl9CGawbocv21EUhoZc4MY4Q==","shasum":"5beba93c40c7ddfae4647613f4ebaed76c1302be","tarball":"https://registry.npmjs.org/2factor/-/2factor-1.0.2.tgz","fileCount":5,"unpackedSize":11916,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7jspCRA9TVsSAnZWagAAbFEP/1YFy90sLRR/V5foWRqV\nNDEX7M0hV8sr9+8RARVedSTfH9pBOA/xf+SoimKYfezgseOjdu9WG/Zcj3iH\nfvxTncb0Gkzj5WeG3WBu8fhY7Lc0lnc54x0pj/oH67JuIOs0pT3v0Sh/jAHa\nS5ItHBTMJIrVE11zBbjUdYEwrQ9DQVwyoqI4FuS3cC2UjjrNmZuLUjDefD92\n0sGXqZUDcqed/n4rLF5FPKClCiPZq1RugojO+93SBSwvd5LoRQ4f9ps/LIem\nBf2F1T5ZeYYjwC1h1Z5tI0/z2IzmjIk+9L0yLdox9uFynDGK5KB9xDG4plyW\nUNukaBh/HbnojKet77Lq852o7Onnku+ZcRlwe6t3wEFSZt7uXbSYKq/oS58k\nSFekK2keCrvxGx9ZmmE+OCU1X5N2EzwAoc+8W4Qn2s56eE8UHKD4BZCwdXxW\n/dXZJBDzax4N//m4df9lfdMoXef/w8H0mZzYe70EGZx1fNkBZI7grbDXj0SL\nL2nYKq8CbB/bgouwkIto0vUYFAdGdhCa4UJ/mZkldRmDR60KytlasKwHEUTb\nR5/mgneJZjb2uJNtrd91kCX1g+DHtafCpSmqPpmrkQ8DDHalqrqqAQNuW4ZV\nFuF3avFB4VpFjAj5TjWPKazMSBr8MgytWRA9Za4NZGBx1kEQ6vO9USMaCoLD\n7xEn\r\n=SpUN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgnztYA5fvPK2/Ts+BlhFfOwM6kRhopBIGNuAdx4PfegIhALiVwJ9/eoO4hhh7Rcxjde70UznNhrezC3Hfw6Ith/ri"}]},"maintainers":[{"name":"hanut","email":"hanutsingh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/2factor_1.0.2_1525562153085_0.6165399157878266"},"_hasShrinkwrap":false},"1.0.3":{"name":"2factor","version":"1.0.3","description":"Simple node library for sending transactional/otp/promotional SMS in India using the 2factor.in APIs","main":"index.js","directories":{"test":"tests"},"scripts":{"test":"mocha tests","test-module":"set APIKEY=<REPLACE WITH API KEY> && set TESTPHONE=<PHONE TO USE AS RECIPIENT> && mocha tests"},"repository":{"type":"git","url":"git+https://github.com/hanut/2factor-node.git"},"keywords":["2factor.in","sms","api","send","sms","otp","via","sms","otp","otp","sms","promotional","sms","transactional","sms"],"author":{"name":"Hanut Singh Gusain"},"license":"MIT","bugs":{"url":"https://github.com/hanut/2factor-node/issues"},"homepage":"https://github.com/hanut/2factor-node#readme","devDependencies":{"chai":"^4.1.2","mocha":"^5.1.1"},"dependencies":{"request":"^2.85.0"},"gitHead":"1944ca18df4be71d4b6449401512b55d0de59987","_id":"2factor@1.0.3","_npmVersion":"6.0.0","_nodeVersion":"8.11.1","_npmUser":{"name":"hanut","email":"hanutsingh@gmail.com"},"dist":{"integrity":"sha512-gVtFt7XuONZtrut0robVJp79LLmXPTw9TcZpVhoFnOYfko9rPu/Btc2BWHc/zZgwEV4O5rjqZraBpv8XnPTLYA==","shasum":"10c842d39fb7418c72e53e538006d72390ef8875","tarball":"https://registry.npmjs.org/2factor/-/2factor-1.0.3.tgz","fileCount":7,"unpackedSize":13333,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa71kVCRA9TVsSAnZWagAAWicP/Aq0TBdfSmeenx7vzi8a\nG7sAzftAbe2McM/CFo59+6z4V3z9sRzdjQlym4aF0owfoSTg+WiJHCAkUbqk\nYQoI58LWWnur/h3njuokNgTLtVElSzvmbb1Gs7Q/ole/aSR+dXbRvzvx5js8\nIkLG7B0vuhQmdMLhi/3C+Gc1Q35IHx1SCNdTh1pQ2wDj9Ze/4FnqPDtxIQD1\nmIsQQPqVeVnRs4VSoczzuqT7EYspR3GlY4Z8+ZafP70pZMmJxn3WKBSz8ORm\nwzBqfef5J0c04nw3ipyggLUseH/glOgZSS08HiYA/EnyP3icnuskLfWvn0Dr\nkeMYC+EbymdQzda6ggyc2TGeQktqZrNeVsUenjAL8oDxHplq5KrV7Vw085xE\nVtsAhznGBmVS5x73p+SfEIipS3cdkDs37tir+rCn/nGyEVkU7FLLwtkfvmx3\nlG99B5pzLE5XuSgUuDiVAURWKKJJGigR2oR7RsmBwMlNGZrQsbVpcC0qRcjB\nWfKXRffXlj3fpS00Xf6mkDD9qEEZn+sDt7TRIQ5UfGwRxjYy8fO6AomVD6gT\nlw0RnF+LXpQOh9H4EUAw/l9EpgnbwfEf9Q99oDSVgjK2mkFrfuloz9X39NWV\nc0braVIXADCj/OvKjLYNKULq5oXQLZAnixIfRS5gM9AWTHNH+Az+iNo8mFNq\nLKbJ\r\n=R/5G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDShM5S8ZPy6kIxrJ8EDas++GKvj8Qu9BagYfucgYpyrAIgc/+4EFofuoO64Q3uZASwNf3MaVDAcmt+zMwOI/supE8="}]},"maintainers":[{"name":"hanut","email":"hanutsingh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/2factor_1.0.3_1525635347661_0.19101575122693126"},"_hasShrinkwrap":false},"1.0.4":{"name":"2factor","version":"1.0.4","description":"Simple node library for sending transactional/otp/promotional SMS in India using the 2factor.in APIs","main":"index.js","directories":{"test":"tests"},"scripts":{"test":"mocha tests","test-module":"set APIKEY=<REPLACE WITH API KEY> && set TESTPHONE=<PHONE TO USE AS RECIPIENT> && mocha tests"},"repository":{"type":"git","url":"git+https://github.com/hanut/2factor-node.git"},"keywords":["2factor.in","sms","api","send","sms","otp","via","sms","otp","otp","sms","promotional","sms","transactional","sms"],"author":{"name":"Hanut Singh Gusain"},"license":"MIT","bugs":{"url":"https://github.com/hanut/2factor-node/issues"},"homepage":"https://github.com/hanut/2factor-node#readme","devDependencies":{"chai":"^4.1.2","mocha":"^5.1.1"},"dependencies":{"request":"^2.88.0"},"gitHead":"be4ad1605bb1bf391134041beca237ffaf2add62","_id":"2factor@1.0.4","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"hanut","email":"hanutsingh@gmail.com"},"dist":{"integrity":"sha512-YDGMtLCCvOUCmmj9L0UO2aE5RMOTVmDlgD0MeAloedL1vj/ZLNoJ8bv6SQF23cQg9oyl/ho0bW9hT2VucU9dog==","shasum":"d9b9a404ae66d1b8e781e8f0829171fa6752640d","tarball":"https://registry.npmjs.org/2factor/-/2factor-1.0.4.tgz","fileCount":7,"unpackedSize":28714,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcClRKCRA9TVsSAnZWagAA8IcP/3zIKMoqszKauYK0mi9T\nSuZg9CjeMBiWfhgInvvVwP80DjzD9P4JRf16xcVUACg1Cu+k74aAgCHca0fs\nFBk2+uisTUngWVDdGq/q+26NWLehqqlRUpxw7aSjQilUXcGdyrebY/PlvJVY\n4WgU+f4pcaJiENrTpGhDFA+WXGrpBEUPRFkIldICNlrKLujrRJRx41CJBv8o\ng8h9foHKaq7JKbJndftHGiAom7/7rB/yt33Tj0YidfFMxSUZs+IOt2nEIJRk\n/JglXSJWlKSYe3Eajf2nUTpZzXiZkNigIPb7xY6ot3k8ypT0kb2nEL8WOuIu\n+ik03btn3pxZUFXyASjkOnp/8Ec4nbh9JzzHzmsSQwkCYDkqxaVej9XUoPtV\nu2ytzQRtW9yk1jOPGPVxeFDFjk76B8oNWu/T6pQ3RuowiKpGZlhagQgGXnyK\n2/KP63tkGX1Olm2UBylGmG+jSktacx3iIm0WG4sz/lQSlsr9HY95i016wMRf\nISG8KRPiABXvn2UqkCsZgERoIvL0XxFQJ91qSEb19x7E2hLcG6HK30YMQlG5\n1+OYDlw+wvwLxVQaUgn78smlpc/brtRIqdzFR4PKKoyt4AlWbNXoOI6Qq3so\nS2RGHMaeeI0zoV5vGyBpI3YqTjmSZ2GY6iCuae7IFU0BTYFKNsBuI1cmeGhi\n4OKc\r\n=faFp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBsodO+WZa+ms+td6FrC9oy9+i3H05wtQjfi47Eq+1D8AiEAwXmVbXL6i+rTJcySk9m18vUThvHCjM/HbjjFersRlt8="}]},"maintainers":[{"name":"hanut","email":"hanutsingh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/2factor_1.0.4_1544180809792_0.34165402497443154"},"_hasShrinkwrap":false},"1.0.5":{"name":"2factor","version":"1.0.5","description":"Simple node library for sending transactional/otp/promotional SMS in India using the 2factor.in APIs","main":"index.js","directories":{"test":"tests"},"scripts":{"test":"mocha tests","test-module":"set APIKEY=<REPLACE WITH API KEY> && set TESTPHONE=<PHONE TO USE AS RECIPIENT> && mocha tests","coverage":"nyc mocha tests"},"repository":{"type":"git","url":"git+https://github.com/hanut/2factor-node.git"},"keywords":["2factor.in","sms","api","send","sms","otp","via","sms","otp","otp","sms","promotional","sms","transactional","sms"],"author":{"name":"Hanut Singh Gusain"},"license":"MIT","bugs":{"url":"https://github.com/hanut/2factor-node/issues"},"homepage":"https://github.com/hanut/2factor-node#readme","devDependencies":{"chai":"^4.1.2","mocha":"^5.1.1","nyc":"^13.1.0"},"dependencies":{"request":"^2.88.0"},"gitHead":"f1d2388b8967003f509ea43faaecaf25256b85b1","_id":"2factor@1.0.5","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"hanut","email":"hanutsingh@gmail.com"},"dist":{"integrity":"sha512-tGfgNKGEplhJQF9c8Lag8cWbAQqreceO1GQ/SjQ2Y2AtnjE1zCqaEBgD/z2g1JbVdJvA6k/lua1iQ0DDdUb+eQ==","shasum":"62175a03b89b3ea357cb3233c110abecbf03943b","tarball":"https://registry.npmjs.org/2factor/-/2factor-1.0.5.tgz","fileCount":19,"unpackedSize":218196,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcCmLBCRA9TVsSAnZWagAA1C4QAJIXBtbodw23RfmSbDRu\nhoX4h9B+RL1QXZq4doBpsFuJzc6FSRn/50yRkXSkbOZvFHn67Lza3w7prbXX\nbNNs+UifScWwIbyAbhXZg7/GsGVQ2mBnr80dvYCttOeIOaL2ixkM4sE4bs+h\ni8xR9CDwgCBqDJPY6Jw/TdfiSnBtkK6zh8jd7+BPjkKJ8KbZQVOiIWnpW3lB\n4VuicuhRFraOhxGwO6SWijAezH2EFqLzO5Yz1AstRQecO8ANxBlrqSFgveDW\nkU3f8pJq1u+vt5N0+1BYdPW+lfXDVGAxwUhnHy/DmqUO+ZdfZnkvlBUI1gCo\nG7LOl1z+ZM4l4iygTqu9N3sXyMuMcsKjMCzhdHH292anSpNiVhpmryZSRkbY\n6gKh1c8otMNttcmALDKbPcv+EDzqif7yu5pxPiqmfJAibjoYXnUN/Bxv0T/M\nla+KHMUCtZnmCHIsUbIs06BAdS9jCG8dKc0j5+z0KUxKv7mqSLDVZusrqA28\nDQDOBXyCtudTjNKVLJFDvRMzyv3gAye8XllLY10+Ko7E1gvHvcNE1ZQvoV16\nH+4dP25MpjI3MN0yvqlqvp5Xd1CTky2f9nOY0ZvOHcg/th7M6+EfEO950gKF\np4HnIuKr4MYbSG4ax9Zd43pCGfPjRtMdaXzIWiDUauHBII5z4cfwNEd0oaMf\nda3u\r\n=rbRs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCY3z0edo0AqNkuV0FaP+fA47Bbj/QqMYGeIt/kLP+E1QIgUr5eBec2z4ZOSj5o0aq4jF5Ie8OI1TEItEEXl29pfO4="}]},"maintainers":[{"name":"hanut","email":"hanutsingh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/2factor_1.0.5_1544184513213_0.21268737723778264"},"_hasShrinkwrap":false},"1.0.6":{"name":"2factor","version":"1.0.6","description":"Simple node library for sending transactional/otp/promotional SMS in India using the 2factor.in APIs","main":"index.js","directories":{"test":"tests"},"scripts":{"test":"mocha tests","test-module":"set APIKEY=<REPLACE WITH API KEY> && set TESTPHONE=<PHONE TO USE AS RECIPIENT> && mocha tests","coverage":"nyc mocha tests"},"repository":{"type":"git","url":"git+https://github.com/hanut/2factor-node.git"},"keywords":["2factor.in","sms","api","send","sms","otp","via","sms","otp","otp","sms","promotional","sms","transactional","sms"],"author":{"name":"Hanut Singh Gusain"},"license":"MIT","bugs":{"url":"https://github.com/hanut/2factor-node/issues"},"homepage":"https://github.com/hanut/2factor-node#readme","devDependencies":{"chai":"^4.1.2","mocha":"^5.1.1","nyc":"^13.1.0"},"dependencies":{"request":"^2.88.0"},"gitHead":"0005657cb8b27adb9421831daaf7c2dac0cf23ad","_id":"2factor@1.0.6","_nodeVersion":"11.12.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-fo9PuTTQX+2sLiLnHfZFWkmVAa89e9h28lXt+p1r3K765nw/t3tkgC41Fwc9ECuVPsNRw76lzXgdVjV/W2fWrw==","shasum":"c67277fdd9cc93252ecd66dd3771a328c3552064","tarball":"https://registry.npmjs.org/2factor/-/2factor-1.0.6.tgz","fileCount":19,"unpackedSize":218757,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdFLHrCRA9TVsSAnZWagAAn7EQAIWKgKrPzIXlJxdxiNMz\nmRlh+WZBVWWlznN2skv9dUKRQNdfXNLc++X1+HCXCK165PUaSEXrN3QitRni\ntErVBzjuLChK17OPPyiq0uYTsiBLN3byRfdrOIVPJdb8hV12ATGGs1kLVk6B\n/D75ToRX9nDP3ANWsV+K9N23/PdMwc4Gkhg1GLPVVScUnjG8YdFgiD1K2smp\nZtADqQBlTDsq+1QjpRjn+8RtEy2gRwu4JhlzD2dPuyT0GHUYzeD5Rl6bai/n\njrlDedzVGwXn0S690XGnvYFFjhnhfM0StG1te1BCT9n30ikkuRloImm7Cbaq\nfS26lCzPnzCq6QmeiuGXVZW2PAQgk5IxSoOh8Yhd148wJnDdXaTJSkhs1JDQ\ns5rDUnKIejyTP+PE0KmQhJZ7GFTSK5S5AQLRcmSmnhshh0Ep434wTRxvrtH3\n49U420smtUD27UuiG2SYiFf/iB4nCj2jKaAA28p/PU1D9lC4DB6KMNqyFdXL\nkmLrZwgU17m1zKBArE0p0+kgozy/dU/dNdNn+IGuNlnc6MlSi9ghav/oThT0\nvGat7ka/ks/kbd3v+WsfBcJaWp5QnUC9Zo9fjcA4+qFhSJVAsj8SIA3bgCWe\nVq5hrktvCwjDToTvKzzYrfele6bL1upGJMCtwS6TBE6ZjrLCWH1KTBIaZ3Ea\n2RLY\r\n=oMBQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBHWFrizF+kTSQr9zx8BWI1BfnD2qqQ22W6s8sXBU/e/AiEA0fWRPRaTL7F7YMzyP8Z9dXyQlsnMLEhzBjh0t+N81lU="}]},"maintainers":[{"name":"hanut","email":"hanutsingh@gmail.com"}],"_npmUser":{"name":"hanut","email":"hanutsingh@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/2factor_1.0.6_1561637354417_0.67036928262952"},"_hasShrinkwrap":false}},"time":{"created":"2018-05-05T22:54:53.791Z","1.0.0":"2018-05-05T22:54:53.884Z","modified":"2022-04-04T10:19:09.907Z","1.0.1":"2018-05-05T23:08:12.844Z","1.0.2":"2018-05-05T23:15:53.150Z","1.0.3":"2018-05-06T19:35:47.765Z","1.0.4":"2018-12-07T11:06:49.981Z","1.0.5":"2018-12-07T12:08:33.387Z","1.0.6":"2019-06-27T12:09:14.589Z"},"maintainers":[{"name":"hanut","email":"hanutsingh@gmail.com"}],"description":"Simple node library for sending transactional/otp/promotional SMS in India using the 2factor.in APIs","homepage":"https://github.com/hanut/2factor-node#readme","keywords":["2factor.in","sms","api","send","sms","otp","via","sms","otp","otp","sms","promotional","sms","transactional","sms"],"repository":{"type":"git","url":"git+https://github.com/hanut/2factor-node.git"},"author":{"name":"Hanut Singh Gusain"},"bugs":{"url":"https://github.com/hanut/2factor-node/issues"},"license":"MIT","readme":"# 2factor-node\nNodeJS module for using the 2factor.in APIs for sending transactional and OTP sms in india\n\n## Installation\nTo install the library use\n```sh\n$ npm i 2factor --save\n```\nTo install the library and save it as a dependency in package.json use\n```sh\n$ npm i 2factor --save\n```\n\n## New in this version (1.0.6)\nOpen template / transactional SMS are now supported. Will add support for OTP messages but I don't have\nany credits for it right now and can't afford to buy them.\n\n## Usage\nThe module exports a constructor that returns new TwoFactor instances.\nThe constructor expects the `api key` to be passed to it.  \n~~~~\nconst TwoFactor = new (require('2factor'))(<your api key>)\n~~~~\n**Note** - You shouldn't store your API key in your code or in text files you will commit to \nyour repositories. Ideally, you want to use environment variables as given below - \n~~~~\nlet APIKEY = process.env.my_api_key || ''\nif (APIKEY === '') {\n  throw new Error('Missing 2Factor api key in environment')\n}\nconst TwoFactor = new(require('2factor'))(APIKEY)\n~~~~\n\n\n### To get your balance - \nThe `balance()` method takes a single string parameter for the type of balance you want to retrieve.\nTo get all balances, specify type as `ALL` or omit the parameter.\n~~~~\nTwoFactor.balance().then((response) => {\n  console.log(response)\n}, (error) => {\n  console.log(error)\n})\n~~~~\n\n### To send an sms otp - \nSimply call the `sendOTP` function with a phone number and options object containing the\notp and template fields. It will return a `Promise` that resolves with the sessionId\nor reject with the reason for failure.\n~~~~\nTwoFactor.sendOTP(<phone number>, {otp: <otp code>, template: <template_name>}).then((sessionId) => {\n  console.log(sessionId)\n}, (error) => {\n  console.log(error)\n})\n~~~~\n\n### To verify an sms otp - \nCall `verifyOTP()` with the sessionId returned from the `sendOTP` function and the otp\nyou want to check. If the otp was correct, it will resolve with a success message else\nit will reject with the response from 2Factor.in\n~~~~\nTwoFactor.verifyOTP(sessionId, otp).then((response) => {\n  console.log(response)\n}, (error) => {\n  console.log(error)\n})\n~~~~\n\n### To send a template SMS to a single user\n~~~~\nTwoFactor.sendTemplate('123456789', 'YOUR SENDER ID', ['VAR1','VAR2', 'VAR3']).then((response) => {\n  console.log(response)\n}, (error) => {\n  console.log(error)\n})\n~~~~\n\n### To send a template SMS to a multiple users\n~~~~\nTwoFactor.sendTemplate(['123456789','987654321'], 'YOUR SENDER ID', ['VAR1','VAR2', 'VAR3']).then((response) => {\n  console.log(response)\n}, (error) => {\n  console.log(error)\n})\n~~~~\n\n### To send an transactional / open template SMS -\nPlease ensure that open template SMS is enabled for your account.\nIf it is not, create a new request for a template and specify the senderid you wish to use for\nsending the Open Template SMS and write in the description that you want to enable open\ntemplate sending ie. dynamic content.\nIf you are sending to a single user, you can just put the phone number as the first parameter.\n~~~~\nTwoFactor.sendTransactional([\"1234567890\", \"2103456789\"], \"Your message\", 'YOUR SENDER ID')\n.then((response) => {\n  console.log(response)\n}, (error) => {\n  console.log(error)\n})\n~~~~\n\n\n## Author\nHanut Singh Gusain <hanutsingh@gmail.com> [http://www.hanutsingh.in]","readmeFilename":"README.md"}