NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #1520 most downloaded on npm
Generate a cryptographically strong random string
Latest stable
6.0.0
Last release 4 months ago
23 Jul 2026
Ships unpredictably
gaps range from 4 weeks to 4.2 years
Nearly every release is documented
notes for 10 of 11 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
11 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
Require Node.js 22 (#52) 83b41e5
cryptoRandomStringAsync method (#52) 83b41e5
https://github.com/sindresorhus/crypto-random-string/compare/v5.0.0...v6.0.0
Require Node.js 14.16 (#44) 2123d11
cryptoRandomString.async to be a named export named cryptoRandomStringAsynchttps://github.com/sindresorhus/crypto-random-string/compare/v4.0.0...v5.0.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
This package is now pure ESM. Please read this.
https://github.com/sindresorhus/crypto-random-string/compare/v3.3.1...v4.0.0
Fix types for options, which are actually required (#35) 4bb1c0a
https://github.com/sindresorhus/crypto-random-string/compare/v3.3.0...v3.3.1
Add alphanumeric character set (#25) a4c63c8
alphanumeric character set (#25) a4c63c8ascii-printable character set (#26) daa6f5ahttps://github.com/sindresorhus/crypto-random-string/compare/v3.2.0...v3.3.0
Add distinguishable character set (#14) c047603
distinguishable character set (#14) c047603https://github.com/sindresorhus/crypto-random-string/compare/v3.1.0...v3.2.0
Add `numeric` type (#17) 1ebdf2e
numeric type (#17) 1ebdf2ehttps://github.com/sindresorhus/crypto-random-string/compare/v3.0.1...v3.1.0
Fix a duplicate character in the urlSafeCharacters list (#10) 3c4424b
urlSafeCharacters list (#10) 3c4424bhttps://github.com/sindresorhus/crypto-random-string/compare/v3.0.0...v3.0.1
Move the length argument to an options-object 16a6364 cryptoRandomString(10); → cryptoRandomString({length: 10});
Breaking:
length argument to an options-object 16a6364
cryptoRandomString(10); → cryptoRandomString({length: 10});Enhancements:
type and characters options (#4) 51402bahttps://github.com/sindresorhus/crypto-random-string/compare/v2.0.0...v3.0.0
Add TypeScript definition (#3) 4b14ea2
Breaking:
Enhancements:
https://github.com/sindresorhus/crypto-random-string/compare/v1.0.0...v2.0.0
Nothing published for this version
One column per quarter.