@loryreuploads/randostrings
v0.1.6
Published
Randostrings, one of the best string randomizer. Just give it a length and a string to randomize and will instantly do it.
Downloads
39
Maintainers
Readme
RandoStrings
The best string randomizer. Just give it a string and a length and it will randomize it.
If you are confused you can join our discord server
Why should you use it?
- Its easy to use and setup
- You can choose custom strings and a custom length
Letters and numbers in the string must be higher or equal to the length
- Example to use it
const randostring = require("./../server.js")
let random = new randostring()
let password = random.password() //Length is 12. String: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$&*()'%-+=/""
let custompassword = random.password({
length: 5, //How long the password is
string: "abcdefghijklmnop" //What will be the letters to choose from
})
console.log(password) //-> T+4NGBt8KB
console.log(custompassword) //-> anoml
let captcha = random.captcha() //Default Length is 5. Default string is: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
let customcaptcha = random.captcha({
length: 3, //How long the captcha is
string: "abcABC" //What will the letters to choose from
})
console.log(captcha) //-> fxoNq
console.log(customcaptcha) //-> CbA
let numberGenerator = random.numberGenerator({
min: 5, //The minimum amount it can choose from
max: 10 //The maximum amount it can choose from
})
console.log(numberGenerator) // -> 7