@loryreuploads/randostrings

0.1.6 • Public • Published

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 

Package Sidebar

Install

npm i @loryreuploads/randostrings

Weekly Downloads

1

Version

0.1.6

License

MIT

Unpacked Size

26.4 kB

Total Files

11

Last publish

Collaborators

  • lorygames