generate-sms-verification-code
v1.0.5
Published
Generates an sms verification code that is only numbers as a string or a number depending on arguments that are passed
Downloads
3,640
Readme
generate-sms-verification-code
Installation
To install generate-sms-verification-code, use npm:
npm install generate-sms-verification-code
Usage
var phoneToken = require('generate-sms-verification-code')
var generatedToken = phoneNumberToken(8, {type: 'number'})
API
phoneToken(length, options)
options
- the length of the random string. [REQUIRED]type
number
string
Tests
npm install
npm test
LICENSE
generate-sms-verification-code is licensed under the MIT license.