![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | dist/ | 10 months ago | - | |
![]() | LICENSE | 10 months ago | 1.1K | |
![]() | README.md | 10 months ago | 2.3K | 595aea1 more query options + view options [كارل مبارك] |
![]() | package.json | 10 months ago | 1.9K | afd0ccc remove unused [كارل مبارك] |
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 enable
pnpm install
pnpm dev
Made with 💛
Published under MIT License.