UNPKG
workcraft-js
Version:
latest (2.0.2)
2.0.2
2.0.1
2.0.0
1.1.0
1.0.0
0.5.20
0.5.18
0.5.16
0.5.15
0.5.14
0.5.11
0.5.10
0.5.9
0.5.8
0.5.7
Node module for Workcraft Workers
workcraft-js
/
tests
/
node_modules
/
jose
/
dist
/
node
/
esm
/
runtime
/
ciphers.js
7 lines
(6 loc)
•
164 B
JavaScript
View Raw
1
2
3
4
5
6
7
import
{ getCiphers }
from
'node:crypto'
;
let
ciphers;
export
default
(algorithm) => { ciphers ||=
new
Set
(
getCiphers
());
return
ciphers.
has
(algorithm); };