hyperdrive-next
hyperdrive-next copied to clipboard
[Feature]: `drive.get(path)` with options like `core.get(index, [options])`
core.get(index, [options]) has some interesting options as timeout and force local recovery.
| Property | Description | Type | Default |
|---|---|---|---|
| wait | Wait for the block to be downloaded | Boolean | true |
| onwait | Hook that is called if the get is waiting for download | Boolean | () => {} |
| timeout | Wait at max some milliseconds (0 means no timeout) | Boolean | 0 |
| valueEncoding | One of 'json', 'utf-8', or 'binary' | String | core's valueEncoding |
I would like to suggest the same options for drive.get(path)