UNPKG
@telios/nebula
Version:
latest (4.0.11)
4.0.11
4.0.9
4.0.8
4.0.7
4.0.6
4.0.5
4.0.4
4.0.2
4.0.1
4.0.0
3.4.14
3.4.13
3.4.12
3.4.11
3.4.10
3.4.9
3.4.8
3.4.7
3.4.6
3.4.5
3.4.4
3.4.3
3.4.2
3.4.1
3.4.0
3.3.6
3.3.5
3.3.4
3.3.3
3.3.2
3.3.1
3.3.0
3.2.2
3.2.1
3.2.0
3.1.3
3.1.2
3.1.1
3.1.0
3.0.1
3.0.0
2.5.8
2.5.7
2.5.6
2.5.5
2.5.4
2.5.3
2.5.2
2.5.1
2.5.0
2.4.3
2.4.2
2.4.1
2.4.0
2.3.2
2.3.1
2.2.0
2.1.2
2.1.1
2.1.0
2.0.0
1.8.3
1.8.2
1.8.1
1.8.0
1.7.2
1.7.1
1.7.0
1.6.0
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.2
1.4.0
1.3.0
1.2.2
1.2.1
1.2.0
1.1.0
1.0.0
Real-time distributed file and data storage.
github.com/Telios-org/nebula
Telios-org/nebula
@telios/nebula
/
lib
/
core.js
16 lines
(12 loc)
•
297 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const
hypercore = require(
'hypercore'
);
class
Hypercore
{
constructor
(storage, key, opts) {
this
.storage = storage
this
.opts = opts
if
(key && typeof key ===
'object'
) {
this
.opts = key }
return
new hypercore(
this
.storage, key, opts) } } module.exports = Hypercore