diff --git a/src/env.ts b/src/env.ts index 1454d0a..2cb5202 100644 --- a/src/env.ts +++ b/src/env.ts @@ -1,6 +1,8 @@ +/** Is in nodejs environment */ export const isNode = typeof process !== "undefined" && process.versions != null && process.versions.node != null; +/** Is in environment with web crypto */ export const hasWebCrypto = globalThis?.crypto?.subtle != null;