Skip to content
JS
Package

crypto-random-string

Generate a cryptographically strong random string

v6.0.0, 23 Jul 2026MITESM onlyTypes: BundledCryptography and hashingStrings and text
$ npm install crypto-random-string

Key numbers

As of 25 Sept 2026
Weekly downloads
23.8m
+32% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
2 months ago
v6.0.0
GitHub stars
592
43 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
5

Downloads

Last week 2026-09-15 to 2026-09-21
010m20m30m40mSept 2025Mar 2026Sept 2026High 30.3m (18 Aug 2026)Low 10.5m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

23,831,992 downloads last week, 101,266,191 in the last month. The 12-month change of +32% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
111 in total
Latest version
6.0.0, 23 Jul 20262 months ago
First published
14 Nov 2016
Last push to GitHub
18 Sept 20266 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
5
Dependents on npm
1,053

Major versions

  1. v6 first release 6.0.0, 23 Jul 2026
  2. v5 first release 5.0.0, 10 May 2022
  3. v4 first release 4.0.0, 5 Apr 2021
  4. v3 first release 3.0.0, 8 May 2019
  5. v2 first release 2.0.0, 9 Apr 2019
  6. v1 first release 1.0.0, 14 Nov 2016

Recent releases

VersionPublished
6.0.023 Jul 2026
5.0.010 May 2022
4.0.05 Apr 2021
3.3.112 Feb 2021
3.3.03 Sept 2020
3.2.07 Mar 2020
3.1.012 Jan 2020
3.0.117 Jun 2019
3.0.08 May 2019
2.0.09 Apr 2019
1.0.014 Nov 2016
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=22
Runtimes
-
Unpacked size (npm)
13 kB
Dependencies (2)
type-festuint8array-extras
npm install crypto-random-string
  • jsDelivrhttps://cdn.jsdelivr.net/npm/crypto-random-string@6.0.0/
  • unpkghttps://unpkg.com/crypto-random-string@6.0.0/
  • esm.shhttps://esm.sh/crypto-random-string@6.0.0
PackageWeekly downloadsGzipLast releaseModuleComparison
react-native-get-random-values1.9m-11 months ago--
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.