Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit fb11b8a

Browse files
committed
back to files
1 parent 3e07d8f commit fb11b8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ outputting objects of the form
7474
```js
7575
{
7676
path: '/tmp/myfile.txt',
77-
node: DAGNode instance
77+
content: Readable stream
7878
}
7979
```
8080

@@ -85,12 +85,12 @@ Example:
8585
```js
8686
ipfs.files.get('QmQ2r6iMNpky5f1m4cnm3Yqw8VSvjuKpTcK1X7dBR1LkJF', function (err, stream) {
8787
stream.on('data', (file) => {
88-
console.log(file.path, file.node)
88+
console.log(file.path)
89+
file.content.pipe(process.stdout)
8990
})
9091
})
9192
```
9293

93-
See also: [DAGNode][]
9494

9595
### `add`
9696

0 commit comments

Comments
 (0)