-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
52 lines (52 loc) · 1.22 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
let bigIntLE, bigIntBE, bigIntQuick, bigUintBE, bigUintLE, bytesIter, createCodec
module.exports = Object.freeze(Object.defineProperties({}, {
bigIntBE: {
enumerable: true,
get () {
if (bigIntBE === undefined) bigIntBE = require('./bigint-be')
return bigIntBE
}
},
bigIntLE: {
enumerable: true,
get () {
if (bigIntLE === undefined) bigIntLE = require('./bigint-le')
return bigIntLE
}
},
bigIntQuick: {
enumerable: true,
get () {
if (bigIntQuick === undefined) bigIntQuick = require('./bigint-quick')
return bigIntQuick
}
},
bigUintBE: {
enumerable: true,
get () {
if (bigUintBE === undefined) bigUintBE = require('./biguint-be')
return bigUintBE
}
},
bigUintLE: {
enumerable: true,
get () {
if (bigUintLE === undefined) bigUintLE = require('./biguint-le')
return bigUintLE
}
},
bytesIter: {
enumerable: true,
get () {
if (bytesIter === undefined) bytesIter = require('./lib').bytesIter
return bytesIter
}
},
createCodec: {
enumerable: true,
get () {
if (createCodec === undefined) createCodec = require('./lib').createCodec
return createCodec
}
}
}))