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

Commit

Permalink
back to files
Browse files Browse the repository at this point in the history
  • Loading branch information
hackergrrl committed Jun 7, 2016
1 parent 3e07d8f commit fb11b8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ outputting objects of the form
```js
{
path: '/tmp/myfile.txt',
node: DAGNode instance
content: Readable stream
}
```

Expand All @@ -85,12 +85,12 @@ Example:
```js
ipfs.files.get('QmQ2r6iMNpky5f1m4cnm3Yqw8VSvjuKpTcK1X7dBR1LkJF', function (err, stream) {
stream.on('data', (file) => {
console.log(file.path, file.node)
console.log(file.path)
file.content.pipe(process.stdout)
})
})
```

See also: [DAGNode][]

### `add`

Expand Down

0 comments on commit fb11b8a

Please sign in to comment.