Skip to content
JS
Package

secure-random-bytes

Retrieve a secure random byte string of a specified length

v7.0.2, 9 Sept 2026MITCommonJSTypes: NoneCryptography and hashing
$ npm install secure-random-bytes

Key numbers

As of 25 Sept 2026
Weekly downloads
1.2k
+311% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
15 days ago
v7.0.2
GitHub stars
1
1 forks
Open issues / PRs
0 / 1
Contributors
-
Commits, last 52 weeks
133

Downloads

Last week 2026-09-15 to 2026-09-21
05k10k15kSept 2025Mar 2026Sept 2026High 11.5k (19 May 2026)Low 164 (30 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

1,215 downloads last week, 8,138 in the last month. The 12-month change of +311% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
7.0.2, 9 Sept 202615 days ago
First published
-
Last push to GitHub
21 Sept 20263 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
1
Commits, last 52 weeks
133
Dependents on npm
5

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
22 || >=24
Runtimes
-
Unpacked size (npm)
3.0 kB
Dependencies (1)
secure-random-octet
npm install secure-random-bytes
  • jsDelivrhttps://cdn.jsdelivr.net/npm/secure-random-bytes@7.0.2/
  • unpkghttps://unpkg.com/secure-random-bytes@7.0.2/
  • esm.shhttps://esm.sh/secure-random-bytes@7.0.2
PackageWeekly downloadsGzipLast releaseModuleComparison
randombytes27.1m-7 years agoCommonJS-
randomfill10.3m-8 years agoCommonJS-
brorand12.5m-9 years agoCommonJS-
seedrandom6.3m-7 years agoCommonJS-
js-crypto-random42.1k-2 years agoCommonJS-
esm-seedrandom25.8k-1 year agoESM only-
create-hash12.3m-8 years agoCommonJS-
csprng1.2m-9 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 1215 < 10000.