0.1.3 • Published 3 years ago

uncrypto v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 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-galericrosswscrypto-primitivescrypto-sealcyberzonedesign-system-trial-milyasbpabetter-call@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@hyoban/better-auth@igniter-js/core@hebilicious/h3@hebilicious/nitro@innei/better-auth@inkbird-io/nuxt-auth-utils@kinde-oss/kinde-typescript-sdk@kinde-oss/kinde-auth-nextjs@streamerbot/client@nuxthub/core@nolebase/vitepress-plugin-thumbnail-hash@nolebase/vitepress-plugin-git-changelog@joyid/ckb@nhealth/auth@nhealth/fhir@josselinonduty/nuxt-auth-utils-rauthy@onehop/js@pkoz/nuxt-auth-utils@portal-sdk/react@pact-toolbox/utils@pact-toolbox/crypto@profilecity/unstorage-s3-driver@aabelmann/ui-layer@better-auth/utils@bloodsbro/nuxt-auth-utils@authup/server-core
0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago