🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

prandom

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

prandom

Complete and Varied Randomization in only one package.

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

Project logo

Hackathon Status GitHub Issues GitHub Pull Requests License

Complete and Varied Randomization in only one package.

🏁 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.

Keywords

random

FAQs

Package last updated on 20 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts