GitShow/sindresorhus/crypto-random-string
sindresorhus

crypto-random-string

Generate a cryptographically strong random string

by sindresorhus
cryptojavascriptnpm-packagerandomrandom-stringrandom-string-generators
Star on GitHubForknpm

JavaScript

588 stars42 forks8 contributorsActive · 1mo agoSince 2016v6.0.0MIT

Meet the team

See all 8 on GitHub →
sindresorhus
sindresorhus21 contributions
Richienb
Richienb9 contributions
stroncium
stroncium2 contributions
coreyfarrell
coreyfarrell1 contribution
BendingBender
BendingBender1 contribution
thekevinbrown
thekevinbrown1 contribution
leafac
leafac1 contribution

Languages

View on GitHub →
JavaScript91.4%
TypeScript8.6%

Commit activity

Last 12 weeks · 4 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
Richienb
Add todoMergedPR
Richienb · 1mo ago
Richienb
Require Node.js 22 and remove `cryptoRandomStringAsync`MergedPR
Richienb · 1mo ago
awongCM
Cannot use import statement outside a moduleClosedIssue

I'm running into problem when using Jest to import the library and run my tests. I get the following: Any advice you can provide on how to configure Jest to play with the crypto-random-string library nicely? Thanks. I also found someone posted this StackOverflow for the same symptom of the problem as mine. https://stackoverflow.com/q/72447286/1065118 FYI

awongCM · 3y ago
Structured data for AI agents

Repository: sindresorhus/crypto-random-string. Description: Generate a cryptographically strong random string Stars: 588, Forks: 42. Primary language: JavaScript. Languages: JavaScript (91.4%), TypeScript (8.6%). License: MIT. Topics: crypto, javascript, npm-package, random, random-string, random-string-generators. Latest release: v6.0.0 (1mo ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus, Richienb, stroncium, coreyfarrell, BendingBender, thekevinbrown, leafac.

·@ofershap

Replace github.com with gitshow.dev