rcharacter-generator
v1.0.1
Published
It generates random values; from letters to numbers and special characters. Specially useful for password generation.
Downloads
8
Readme
RCharacter Generator
A generator that creates random values, including letters, numbers and special characters. You can generate passwords or special codes with this!
⚙️ Install
You can install this package using npm
:
npm i rcharacter-generator
# Or with Yarn!
yarn add rcharacter-generator
📕 Usage
Import to the desired file
import generate from 'rcharacter-generator';
This function recieves two params: a lenght param as an int
, and an optional object
with the different options for the generator:
Basic usage!
generate(10)
// Generates a string of lowercase values
With options
The options
param can recieve the following values:
- lowercaseLetters
- uppercaseLetters
- numbers
- specialSymbols
generate(10, { lowercaseLetters: true, uppercaseLetters: true });
// Generates a string of lowercase and uppercase values
generate(10, { lowercaseLetters: true, uppercaseLetters: true, numbers: true });
// Generates a string of lowercase, uppercase and number values
generate(10, { lowercaseLetters: true, uppercaseLetters: true, numbers: true, specialSymbols: true});
// Generates a string of all possible values: uppercase, lowercase, numbers and special symbols
🛠️ Issues
If you find any issues, please head over to the issues and I'll try to see what I can do
💬 Discussions
Do you have an idea of how to improve this project? Head over to discussions section and share your ideas!