Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

topgun-webcrypto

TopGunBuild35MIT1.0.5TypeScript support: included

An isomorphic WebCrypto for Javascript in Node and the browser

isomoprhic, webcrypto, browser, node

readme

🔑 topgun-webcrypto

An isomorphic WebCrypto for Javascript in Node and the browser, used in TopGun

semantic-release npm bundlephobia License: MIT

What?

It is an isomorphic WebCrypto object that combines a great Node polyfill and Web Crypto API.

Install

npm install topgun-webcrypto

Usage

There's a simple hashing example below, but there are many more WebCrypto examples here.

const crypto = require('topgun-webcrypto')
// or
import crypto from 'topgun-webcrypto';

crypto.randomUUID (); // => '43e16416-7a2a-4c00-b2e8-1ea7a57adfb9'

License

MIT

changelog

1.0.5 (2023-04-18)

Bug Fixes

  • update tsup config for types generation (1bd997c)

1.0.4 (2023-04-17)

Bug Fixes

1.0.3 (2023-04-11)

Bug Fixes

  • change globalName property (86d4ccd)

1.0.2 (2023-04-11)

Bug Fixes

1.0.1 (2023-04-10)

Bug Fixes

  • fix @peculiar/webcrypto dependency (2b6d001)

1.0.0 (2023-04-09)

Features