UNPKG
@openpgp/tweetnacl
Version:
latest (1.0.4-2)
1.0.4-2
1.0.4-1
1.0.4-0
1.0.3
Port of TweetNaCl cryptographic library to JavaScript
tweetnacl.js.org
openpgpjs/tweetnacl-js
@openpgp/tweetnacl
/
cryptoBrowser.js
4 lines
(3 loc)
•
176 B
JavaScript
View Raw
1
2
3
4
// declare const globalThis: Record<string, any> | undefined;
export
const
crypto =
typeof
globalThis ===
'object'
&&
'crypto'
in
globalThis ? globalThis.
crypto
:
undefined
;