
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
you can randomize anything with one package. We have provided randomizers like string, number, hexColor, emoji, id, otp, password, serialId and others
npm i prandom
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
*/
See also the list of contributors who participated in this project.
Code released under the MIT License.
FAQs
Complete and Varied Randomization in only one package.
We found that prandom demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.