Skip to content

Commit

Permalink
chore: add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wemeetagain committed Jul 15, 2024
1 parent 3a3ea23 commit 789b8ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/env.ts
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 789b8ba

Please sign in to comment.