0.1.3 • Published 2 years ago

uncrypto v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

uncrypto

npm version npm downloads Github Actions Codecov

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:

  • Node.js: Version 15 and above (this library provides no polyfills for older versions!)
  • Browser: Secure Context (HTTPS/Localhost) in Supported Browsers
  • Other Runtimes: Exposed globalThis.crypto and globalThis.crypto.subtle. (you can polyfill if neeeded)

Usage

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");

Development

  • Clone this repository
  • Install latest LTS version of Node.js
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run interactive tests using pnpm dev

License

Made with 💛

Published under MIT License.

@everything-registry/sub-chunk-3010@itpropro/nuxt-oidc-authnuxt-oidc-ssr-authxipherbetter-auth-uuidv4iron-sessionhar-sanitizerh3h3-nightlymangudinlagirajinloading-animated@wunderwerk/next-stateless-session@wunderwerk/next-session-cookie@wouldyou/better-auth@wristband/cloudflare-workers-auth@wristband/express-auth@wristband/nextjs-auth@theprincelle/auth-utils@unjsio/kvdb@tomw2w/my-nuxt-layer@trigger.dev/sdk@vinxi/h3anakketigaanaklanangteaanakwadonteaaegis-authadfs-authadfs-auth-forkazurency-auth-utilsarri-validategerimismalamseninforoncegassefalsgassefals-2dynamics-contracts-xenefti-galeri@aabelmann/ui-layer@profilecity/unstorage-s3-driver@bloodsbro/nuxt-auth-utils@byu-oit-sdk/credential-provider@byu-oit-sdk/middleware-retry@better-auth/utils@bachha2906/better-auth@axxy/nitropack@axxy/nuxt@banjoanton/utilscrosswscrypto-primitivescrypto-sealcyberzonedesign-system-trial-milyasbpabetter-call@arrirpc/server@arrirpc/schema@atinux/nuxthub@auth0/mdl@authup/server-core@authup/server-kit@analog-tools/session@farnabaz/core@tsvx/vue-loader@ourongxing/nitro@ourongxing/nitropacktehmusimhujanunjs-rekitzona-x@lmoesle/nuxt-auth-utils@shelve/cryptonuxtpaginationsnuxtnuxt3nuxt-with-fixed-cachenuxt-auth-utilsnuxt-auth-utils-xnuxt-auth-corenuxt-nightlynuxt-oidc-authnuxt-oidc-auth-floupatepangdeuisedanbosokroutupnitro-gonitro-nightlynitropack-edgenitropackpileuleuyantearefinejs-reporaj-nuxt3-oidc-authslip39-tsslip-auth-coreshowgallery@danizean/cyberzone@coverbase/nuxt-auth@eckidevs/cf-pbkdf2@dworks/nuxt-auth-utils@hyoban/better-auth@igniter-js/core@hebilicious/h3@hebilicious/nitro@innei/better-auth
0.1.3

2 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago