Gathering detailed insights and metrics for randombytes-pure
Gathering detailed insights and metrics for randombytes-pure
Gathering detailed insights and metrics for randombytes-pure
Gathering detailed insights and metrics for randombytes-pure
An npm module for generating random bytes without relying on any native libraries.
npm install randombytes-pure
Typescript
Module System
Node Version
NPM Version
TypeScript (69.35%)
JavaScript (30.65%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2 Stars
104 Commits
3 Forks
24 Branches
1 Contributors
Updated on Mar 19, 2022
Latest Version
4.1.0
Package Id
randombytes-pure@4.1.0
Unpacked Size
374.57 kB
Size
142.75 kB
File Count
21
NPM Version
6.14.6
Node Version
12.18.2
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
22
This is a fork of react-native-randombytes
, and is a superset of its exposed randomBytes
API.
You probably want to use that library if you're comfortable/capable of using
react-native link
. If, however, you're using the
Expo "Managed Workflow" or otherwise don't want to mess around with native dependencies, then this library is
the one for you.
This library uses the SJCL pseudo-random generator. That library is small, fast, and memory-efficient.
1import randomBytes from "randombytes-pure"; 2 3const rand = randomBytes(4);
That is it. Now rand
is a Buffer
with 4 pseudo-random bytes. Enjoy.
1yarn add randombytes-pure
If you want to use this module anywhere you might otherwise use react-native-randombytes
, AND you are using yarn
or some other build tool that supports "resolutions"
in package.json
, then just add this to your package.json
:
1"resolutions": { 2 "react-native-randombytes": "randombytes-pure" 3}
This library follows semver using Semantic Release and Conventional Commits.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
63 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More