Single API for Web Crypto API and Crypto Subtle working in Node.js, Browsers and other runtimes
TypeScript
261
34 commits
updated Oct 10, 2026
This library provides a single api to use web-crypto and Subtle Crypto in both Node.js using Crypto Module and Web targets using Web Crypto API using Conditional Exports.
Requirements:
globalThis.crypto and globalThis.crypto.subtle. (you can polyfill if neeeded)Install package:
# npm
npm install uncrypto
# yarn
yarn add uncrypto
# pnpm
pnpm install uncrypto
Import:
// ESM
import { subtle, randomUUID, getRandomValues } from "uncrypto";
// CommonJS
const { subtle, randomUUID, getRandomValues } = require("uncrypto");
corepack enablepnpm installpnpm devMade with 💛
Published under MIT License.
1,187 followers · starred Feb 2023
141 followers · starred May 2023
2,205 followers · starred Apr 2024
970 followers · starred Jul 2023
Single API for Web Crypto API and Crypto Subtle working in Node.js, Browsers and other runtimes
TypeScript
261
34 commits
updated Oct 10, 2026
This library provides a single api to use web-crypto and Subtle Crypto in both Node.js using Crypto Module and Web targets using Web Crypto API using Conditional Exports.
Requirements:
globalThis.crypto and globalThis.crypto.subtle. (you can polyfill if neeeded)Install package:
# npm
npm install uncrypto
# yarn
yarn add uncrypto
# pnpm
pnpm install uncrypto
Import:
// ESM
import { subtle, randomUUID, getRandomValues } from "uncrypto";
// CommonJS
const { subtle, randomUUID, getRandomValues } = require("uncrypto");
corepack enablepnpm installpnpm devMade with 💛
Published under MIT License.
1,187 followers · starred Feb 2023
141 followers · starred May 2023
2,205 followers · starred Apr 2024
970 followers · starred Jul 2023