@i-xi-dev/base64
Version:
A JavaScript Base64 encoder and decoder, implements Forgiving base64 defined in WHATWG Infra Standard.
19 lines (18 loc) • 596 B
TypeScript
/**
* If the `globalThis` has a [`crypto`](https://developer.mozilla.org/en-US/docs/Web/API/crypto_property), or if the `node:crypto` package has a `webcrypto`, then the `Crypto` object.
* Otherwise referencing it will throw a `ReferenceError`.
*
* - Browser
* References the `globalThis.crypto`
*
* - Deno
* References the `globalThis.crypto`
*
* - Node.js 19.0+
* References the `globalThis.crypto`
*
* - Node.js 15.0+
* References the [`webcrypto`](https://nodejs.org/api/webcrypto.html#class-crypto) of `node:crypto` package
*/
declare let _crypto: Crypto;
export { _crypto };