UNPKG
ksuid-edge
Version:
latest (0.0.4)
0.0.4
0.0.3
0.0.2
0.0.1
Edge and browser-compatible KSUID generator
github.com/sophiabits/ksuid-edge
sophiabits/ksuid-edge
ksuid-edge
/
lib
/
crypto.js
10 lines
•
277 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
function
getCrypto
(
) {
if
(
typeof
crypto ===
'undefined'
) {
return
require
(
'crypto'
).
webcrypto
; }
return
crypto; }
exports
.
default
=
getCrypto
();
//# sourceMappingURL=crypto.js.map