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-validate@aabelmann/ui-layer@axxy/nitropack@axxy/nuxt@atinux/nuxthub@eckidevs/cf-pbkdf2@coverbase/nuxt-auth@farnabaz/core@tsvx/vue-loader@ourongxing/nitro@ourongxing/nitropacktehmusimhujanunjs-rekit@banjoanton/utils@byu-oit-sdk/credential-provider@byu-oit-sdk/middleware-retryzona-x@lmoesle/nuxt-auth-utils@myshkouski/web-crypto@profilecity/unstorage-s3-driver@scayle/storefront-core@scayle/storefront-nuxt@scayle/h3-session@portal-sdk/react@shelve/crypto@rigo-m/nitropacknuxtpaginationsnuxtnuxt3nuxt-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-coreshowgallerycrosswscrypto-primitivescrypto-sealcyberzonedesign-system-trial-milyasbpabetter-callgerimismalamseninforoncegassefalsgassefals-2@streamerbot/clientdynamics-contracts-xenefti-galeri@soybean-ui/primitive@soybean-ui/vue@authup/server-core@authup/server-kit@auth0/mdl@hebilicious/h3@hebilicious/nitro@analog-tools/session@inkbird-io/nuxt-auth-utils
0.1.3

2 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago