prandom
v1.2.0
Published
Complete and Varied Randomization in only one package.
Downloads
2
Maintainers
Readme
🏁 Getting Started
you can randomize anything with one package. We have provided randomizers like string
, number
, hexColor
, emoji
, id
, otp
, password
, serialId
and others
💉 Installation
npm i prandom
🎈 Usage
how to use it is very easy, as follows :
const prandom = require('prandom');
var length = 30
const randomString = prandom.string(length)
const randomNumber = prandom.number(length)
const randomHexColor = prandom.hexColor()
const randomEmoji = prandom.emoji()
const randomID = prandom.id(length - 22)
const randomOTP = prandom.otp(length - 24)
const randomPassword = prandom.password(length - 15)
const randomSerialID = prandom.serialId(length - 10)
// and others...
or
const { string, number, hexColor, emoji, id, otp, password, serialId } = require('prandom')
/*
randomString => AaFWV1FOVIx13CzJLdHNUvtaaYJbO9
randomNumber => 358734643519106301161778459502
randomHexColor => #7afb96
randomEmoji => 🥉
randomID => #78422535
randomOTP => 770860
randomPassword => goWtyLunEpZHfo3
randomSerialID => aluvy-i9NfA-BPcgs-l1AxH-dJfwK-H6FlT
*/
✍️ Authors
- @zaadevofc - Developer
See also the list of contributors who participated in this project.
🎉 License
Code released under the MIT License.