Package
secure-random-bytes
Retrieve a secure random byte string of a specified length
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
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- jsDelivr
https://cdn.jsdelivr.net/npm/secure-random-bytes@7.0.2/ - unpkg
https://unpkg.com/secure-random-bytes@7.0.2/ - esm.sh
https://esm.sh/secure-random-bytes@7.0.2
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| randombytes | 27.1m | - | 7 years ago | CommonJS | - |
| randomfill | 10.3m | - | 8 years ago | CommonJS | - |
| brorand | 12.5m | - | 9 years ago | CommonJS | - |
| seedrandom | 6.3m | - | 7 years ago | CommonJS | - |
| js-crypto-random | 42.1k | - | 2 years ago | CommonJS | - |
| esm-seedrandom | 25.8k | - | 1 year ago | ESM only | - |
| create-hash | 12.3m | - | 8 years ago | CommonJS | - |
| csprng | 1.2m | - | 9 years ago | CommonJS | - |
Indexability: Not indexed (discovery only): downloads_week 1215 < 10000.