Back to Explore

lukeed/csprng

GitHub
1 watchersOpen source

Last release:

@lukeed/csprng is a tiny isomorphic wrapper that provides cryptographically secure random bytes via Node.js crypto.randomBytes and browser crypto. It helps you import a consistent random(length) function across environments without manually handling different crypto implementations, using bundlers and/or module resolution.

Project status

  • Maintenance status: The last upstream push and the newest listed update are from 2023-03-31, so as of 2026-08-12 the source appears quiet or effectively in maintenance mode, with no recent evidence of ongoing updates.
  • Update cadence: Updates are infrequent, with a gap of about 1.3 years between v1.0.1 (2021-11-22) and v1.1.0 (2023-03-31), and no further updates shown since then.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v1.1.0

    This release updates the package metadata to improve TypeScript type resolution. The main change is adding a "types" condition to the package.json exports map so TS can locate the correct .d.ts files for both Node and browser builds.

    Features
  • v1.0.1

    v1.0.1 updates the package exports configuration to adjust how the `browser` entry is selected via conditional exports, prioritizing it earlier in resolution. It also bumps the `uvu` devDependency used for tests.

  • v1.0.0

    Release v1.0.0 was published on 2020-10-27, but the publisher did not provide any release notes or change log details. As a result, there is no documented information about new features, fixes, breaking changes, or dependency updates for developers to evaluate.