Referral Code Generator
A package that helps you generate referral code for your users.
Installation
$ npm install referral-code-generator
Features
* Little and easy to use.
* Generate random and custom referral code.
Usage
OR
let referralCodeGenerator =
Generating your referral code
example 1: referralCodeGenerator result: the above code will return 12 random alphabets in lowercase
example 2: referralCodeGenerator result: the above code will return 8 alphabets and 7 numbers respectively
example 3: referralCodeGenerator; result: the above code will return 6 letters from the supplied username and 6 random numbers
Parameters
username: This is your user's unique name.
wordlength: The number of alphabets you want to extract from the username to form the referral code.
numberlength: The number of random digits you want to generate.
type: The word case format you want. [uppercase, lowercase].