ipfs-unixfs-importer 15.3.3 → 15.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.min.js.map +2 -2
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.js +2 -2
- package/package.json +2 -1
- package/src/index.ts +2 -2
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ Let's create a little directory to import:
|
|
|
37
37
|
|
|
38
38
|
And write the importing logic:
|
|
39
39
|
|
|
40
|
-
```
|
|
40
|
+
```TypeScript
|
|
41
41
|
import { importer } from 'ipfs-unixfs-importer'
|
|
42
42
|
import { MemoryBlockstore } from 'blockstore-core/memory'
|
|
43
43
|
import * as fs from 'node:fs'
|
|
@@ -61,7 +61,7 @@ for await (const entry of importer(source, blockstore)) {
|
|
|
61
61
|
|
|
62
62
|
When run, metadata about DAGNodes in the created tree is printed until the root:
|
|
63
63
|
|
|
64
|
-
```
|
|
64
|
+
```
|
|
65
65
|
{
|
|
66
66
|
cid: CID, // see https://github.com/multiformats/js-cid
|
|
67
67
|
path: 'tmp/foo/bar',
|