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
{{ message }}
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
`callback` must follow `function (err, stream) {}` signature, where `err` is an error if the operation was not successful and `stream` is a readable stream of the file.
122
127
123
128
If no `callback` is passed, a promise is returned.
124
129
125
130
```JavaScript
126
-
ipfs.files.cat(multihash, function (err, file) {
131
+
ipfs.files.cat(ipfsPath, function (err, file) {
127
132
// file will be a stream containing the data of the file requested
128
133
})
129
134
```
@@ -136,9 +141,17 @@ A great source of [examples][] can be found in the tests for this API.
0 commit comments