generate-sms-verification-code

Generates an sms verification code that is only numbers as a string or a number depending on arguments that are passed

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
generate-sms-verification-code
801.0.55 years ago5 years agoMinified + gzip package size for generate-sms-verification-code in KB

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.