You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-29Lines changed: 31 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,11 @@ Built for sharing large datasets and streams of real time data
8
8
9
9
## Features
10
10
11
-
***Sparse replication.** Only download the data you are interested in.
12
-
***Realtime.** Get the latest updates to the log fast and securely.
13
-
***Performant.** Uses a simple flat file structure to maximize I/O performance.
14
-
***Secure.** Uses signed merkle trees to verify log integrity in real time.
15
-
***Modular.** Hypercore aims to do one thing and one thing well - distributing a stream of data.
11
+
-**Sparse replication.** Only download the data you are interested in.
12
+
-**Realtime.** Get the latest updates to the log fast and securely.
13
+
-**Performant.** Uses a simple flat file structure to maximize I/O performance.
14
+
-**Secure.** Uses signed merkle trees to verify log integrity in real time.
15
+
-**Modular.** Hypercore aims to do one thing and one thing well - distributing a stream of data.
16
16
17
17
Note that the latest release is Hypercore 10, which adds support for truncate and many other things.
18
18
Version 10 is not compatible with earlier versions (9 and earlier), but is considered LTS, meaning the storage format and wire protocol is forward compatible with future versions.
@@ -31,7 +31,7 @@ Make a new Hypercore instance.
31
31
32
32
`storage` should be set to a directory where you want to store the data and core metadata.
33
33
34
-
```js
34
+
```js
35
35
constcore=newHypercore('./directory') // store data in ./directory
36
36
```
37
37
@@ -41,7 +41,7 @@ Alternatively you can pass a [Hypercore Storage](https://github.com/holepunchto/
41
41
42
42
`options` include:
43
43
44
-
```js
44
+
```js
45
45
{
46
46
createIfMissing:true, // create a new Hypercore key pair if none was present in storage
47
47
overwrite:false, // overwrite any old Hypercore that might already exist
@@ -114,7 +114,7 @@ Signers are an array of objects with the following structure:
114
114
Append a block of data (or an array of blocks) to the core.
115
115
Returns the new length and byte length of the core.
116
116
117
-
```js
117
+
```js
118
118
// simple call append with a new block of data
119
119
awaitcore.append(Buffer.from('I am a block of data'))
0 commit comments