{"_id":"@ascmartins/verification-otp-generator","_rev":"1-c2e422e509f4ddfb88390daea497a123","name":"@ascmartins/verification-otp-generator","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@ascmartins/verification-otp-generator","version":"0.1.0","description":"Generates a verification code with size and characters defined by passed arguments","main":"index.js","scripts":{"test":"node ./test.js"},"repository":{"type":"git","url":"git+https://github.com/ascmartins/verification-otp-generator.git"},"keywords":["number","generator"],"author":{"name":"Alexandre Martins"},"license":"MIT","bugs":{"url":"https://github.com/ascmartins/verification-otp-generator/issues"},"homepage":"https://github.com/ascmartins/verification-otp-generator#readme","gitHead":"0460ae84fc3359efc772d982b8c4014e275a549f","_id":"@ascmartins/verification-otp-generator@0.1.0","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-/SupAkAVBV/buk7sH8KrcX66rH5bAuhmeey+TvsDTFJcc0oDHNO0Qbvnn1sSGiqMw3orJ93kVl72Tpd5OVrVfw==","shasum":"924653d6c3db711a551c5c929f5fc0c15f738da4","tarball":"https://registry.npmjs.org/@ascmartins/verification-otp-generator/-/verification-otp-generator-0.1.0.tgz","fileCount":5,"unpackedSize":3667,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpWeeCRA9TVsSAnZWagAAQS0P/0UNFaJMBDAgPvezS3GD\np6shfKrjhwsimEP8i9ewmJlwQikKemmcXkXR/4eY843bxl18nB+Ky5BoNbDT\nUIJRlz2sgfHBV+TsKl8rRIDFdyMJ4DnMKGdZ8HkISBJrBfwRupp+uY0YrXCz\nfN7J2TEIPPZDhZl+Sco4ca27l0uEnphX9Mn7ns9ZmviZzrRs9myI5OPOfuX8\nNxhYWiGrXzkZyfQnSJuwpQ56lyF52H+xmCE77HqwMu0wN2Qqa/BUxSg334qc\nqLyX39hrXQarz+VB9gFtDHUpSBVm4MgdCCasI6vyoxwwSLpJ7m+zwgbKCDw8\ns6zmBSbxKwKk1L/74Sn0Evd3r6zU4ZsGNdIKHg1WA98Li43e/2S9ZtISaUch\nrE2icRtel/YAPN9SeZhne5JQKuFAXojkuXsQZLVtpY9dP1iUrlnh70iDwk1G\niiw7Q1eJ8ElXiPt8o50Qwdcu2AfvBtc1WwoP4Fc9YJ8UNOLWZPlwFN2+MHK3\n7+R5W/AEMnaaGkkHQNdkr9oZRfNp1Rb17aXeNbyUt8ERo6jcJOA/UY6zN3Je\n9V75s6CbC/B/q0A3qCNI/sBW093dkccbauBLW7t4a82accOaW4JgD7DCSWnV\ncfZ5cBcdTOP/Sce3Cv0jlEVnXXaSYZcv2PtF85+5P/RuV/iH//UxRySYEE/y\nPUBZ\r\n=Vafv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBmd9vZ8JDUk0WNZuhwjADgREH7el1+s3J5zL6uFB4PkAiEAuQ0TIZxEwZr62FT7GN8/UdFPbSsA9zG7X2QjykOByTc="}]},"_npmUser":{"name":"ascmartins","email":"alexscmar@gmail.com"},"directories":{},"maintainers":[{"name":"ascmartins","email":"alexscmar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/verification-otp-generator_0.1.0_1638229918230_0.516263545968136"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-29T23:51:58.180Z","0.1.0":"2021-11-29T23:51:58.444Z","modified":"2022-04-04T15:43:10.534Z"},"maintainers":[{"name":"ascmartins","email":"alexscmar@gmail.com"}],"description":"Generates a verification code with size and characters defined by passed arguments","homepage":"https://github.com/ascmartins/verification-otp-generator#readme","keywords":["number","generator"],"repository":{"type":"git","url":"git+https://github.com/ascmartins/verification-otp-generator.git"},"author":{"name":"Alexandre Martins"},"bugs":{"url":"https://github.com/ascmartins/verification-otp-generator/issues"},"license":"MIT","readme":"# verification-code-generator\n\nVerification OTP Generator is a simple and flexible verification code generator.\n\n## Installation\n\nUse [npm](https://github.com/npm/cli):\n\n```npm install verification-otp-generator```\n\n## Usage\n\n```javascript\nconst otpGen = require('verification-otp-generator')\nconst allChars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWYXZ!#$()[]{}-*+&%'\nconst digits = '01234567890'\n\nlet otp1 = otpGen(9, digits)\n\nlet otp2 = otpGen(9, allChars)\n\n```\n### Output examples\n\n**otp1**: 452402813\n\n**otp2**: 2pUFQ!5GF\n\n## API\n\n```javascript \n verification-otp-generator(size, characters)\n```\n\n- size - the size of the OTP code\n- characters - a string of characters to use to generate the code (it's up to you) \n\n## License\n\nverification-otp-generator is licensed under the MIT license","readmeFilename":"README.md"}