@@ -156,7 +156,7 @@ Prints out objects like:
156
156
157
157
Now [ ipfs.io/ipfs/Qm...WW] ( https://ipfs.io/ipfs/QmNz1UBzpdd4HfZ3qir3aPiRdX5a93XwTuDNyXRc6PKhWW ) returns the "ABC" string.
158
158
159
- ** Importing files from the file system: **
159
+ ###### Importing files from the file system
160
160
161
161
Both js-ipfs and js-ipfs-http-client export a utility to make importing files from the file system easier (Note: it not available in the browser).
162
162
@@ -185,7 +185,7 @@ for await (const file of ipfs.add(globSource('./docs', { recursive: true }))) {
185
185
*/
186
186
```
187
187
188
- ** Importing a file from a URL: **
188
+ ###### Importing a file from a URL
189
189
190
190
Both js-ipfs and js-ipfs-http-client export a utility to make importing a file from a URL easier.
191
191
@@ -208,7 +208,7 @@ for await (const file of ipfs.add(urlSource('https://ipfs.io/images/ipfs-logo.sv
208
208
*/
209
209
```
210
210
211
- A great source of [ examples] [ ] can be found in the tests for this API.
211
+ A great source of [ examples] ( https://github.com/ipfs/interface-js-ipfs-core/blob/master/src/add.js ) can be found in the tests for this API.
212
212
213
213
#### ` cat `
214
214
@@ -247,7 +247,7 @@ for await (const chunk of ipfs.cat(ipfsPath)) {
247
247
console .log (Buffer .concat (chunks).toString ())
248
248
```
249
249
250
- A great source of [ examples] [ ] can be found in the tests for this API.
250
+ A great source of [ examples] ( https://github.com/ipfs/interface-js-ipfs-core/blob/master/src/cat.js ) can be found in the tests for this API.
251
251
252
252
#### ` get `
253
253
@@ -303,7 +303,7 @@ for await (const file of ipfs.get(cid)) {
303
303
}
304
304
```
305
305
306
- A great source of [ examples] [ ] can be found in the tests for this API.
306
+ A great source of [ examples] ( https://github.com/ipfs/interface-js-ipfs-core/blob/master/src/get.js ) can be found in the tests for this API.
307
307
308
308
#### ` ls `
309
309
@@ -353,7 +353,7 @@ for await (const file of ipfs.ls(cid)) {
353
353
}
354
354
```
355
355
356
- A great source of [ examples] [ ] can be found in the tests for this API.
356
+ A great source of [ examples] ( https://github.com/ipfs/interface-js-ipfs-core/blob/master/src/ls.js ) can be found in the tests for this API.
357
357
358
358
---
359
359
@@ -769,7 +769,6 @@ for await (const file of ipfs.files.ls('/screenshots')) {
769
769
// 2018-01-22T18:08:49.184Z.png
770
770
```
771
771
772
- [ examples ] : https://github.com/ipfs/interface-ipfs-core/blob/master/src/files-regular
773
772
[ b ] : https://www.npmjs.com/package/buffer
774
773
[ file ] : https://developer.mozilla.org/en-US/docs/Web/API/File
775
774
[ cid ] : https://www.npmjs.com/package/cids
0 commit comments