Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ecies/js-post-quantum/llms.txt
Use this file to discover all available pages before exploring further.
@ecies/post-quantum is published to the npm registry and works across Node.js, Bun, Deno, modern browsers, and React Native. This page covers how to install the package with each supported package manager, environment-specific configuration requirements, and how to verify the installation is working.
Package managers
Install the package with your preferred package manager:Runtime requirements
| Runtime | Minimum version |
|---|---|
| Node.js | ≥ 16 |
| Bun | ≥ 1 |
| Deno | ≥ 2 |
TypeScript
TypeScript types are bundled with the package. No separate@types/ package is needed. The type declarations are exported from dist/index.d.ts and are automatically resolved by the TypeScript compiler.
tsconfig.json targets at least ES2020 and has moduleResolution set to "node16", "nodenext", or "bundler" to correctly resolve the package’s exports map.
Platform-specific notes
Deno
The package supports Deno ≥ 2. Depending on your Deno version, you may need an extra flag to resolve thedeno export condition:
- Deno ≥ 2.4.0 — run with
--conditions deno: - Deno ≥ 2.3.6 and < 2.4.0 — run with
--unstable-node-conditions deno:
React Native
React Native does not expose the Web Crypto API by default. You must polyfillcrypto.getRandomValues before importing @ecies/post-quantum. Install react-native-get-random-values and import it at the top of your entry file: