https://github.com/poga/hyperdrive-read
fs.read for hyperdrive
https://github.com/poga/hyperdrive-read
buffer hyperdrive javascript
Last synced: about 1 year ago
JSON representation
fs.read for hyperdrive
- Host: GitHub
- URL: https://github.com/poga/hyperdrive-read
- Owner: poga
- License: mit
- Created: 2017-02-09T23:12:32.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-10T00:34:35.000Z (about 9 years ago)
- Last Synced: 2025-02-08T16:44:28.582Z (about 1 year ago)
- Topics: buffer, hyperdrive, javascript
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hyperdrive-read
Read data from a file in a hyperdrive archive. Provide the same interface as `fs.read`
`npm i hyperdrive-read`
## Usage
```js
var read = require('hyperdrive-read')
read(archive, entry, buffer, offset, length, position, function (err, bytesRead, buffer) {
// done
})
```
## License
The MIT License