SkillAgentSearch skills...

Randomstringsgenerator

This package will generate a random string with params

Install / Use

/learn @0x4bd0/Randomstringsgenerator
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

randomstringsgenerator

This package will generate a random string with params, for example you can use this package to generate passwords.

Getting started :

npm i randomstringsgenerator <br>

Or <br>

yarn add randomstringsgenerator <br>

Next we import it <br>

const rsg = require('randomstringsgenerator')

How to use:

The packge accepts 2 inputs, if you call the generator without passing any params, <br> it will return a random string including lowerCase and numbers only, with the length of 10 chars.<br>

Inputs : <br>

1- length => a number, represents the length of the string. <br> 2- params => Array [] accepts the following strings ['upperCase', 'lowerCase', 'specialChars', 'numbers'].<br>

rsg(length,params)

Example

If i want a random string including uppercase, lowercase, special characters and numbers, with a length of 15 <br>

rsg(15,['numbers','upperCase','lowerCase','specialChars'])

Related Skills

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated1y ago
Forks0

Languages

JavaScript

Security Score

60/100

Audited on Jun 24, 2024

No findings