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

576 stars42 forks8 contributorsQuiet · 4y agoSince 2016v5.0.0MIT

Meet the team

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

Languages

View on GitHub →
JavaScript95%
TypeScript5%

Commit activity

Last 12 weeks · 0 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 →
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
fullDev9233
require() of ES modules is not supportedClosedIssue

When I try to import this module(V5.0.0) using TypeScript, I am getting this error. import cryptoRandomString from 'crypto-random-string';

fullDev9233 · 3y ago
riderx
Readme is not up to dateClosedIssue

it say when it should say

riderx · 3y ago
Structured data for AI agents

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

·@ofershap

Replace github.com with gitshow.dev