File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 15
15
* import { car } from '@helia/car'
16
16
* import { CarWriter } from '@ipld/car'
17
17
* import { Readable } from 'node:stream'
18
- * import fs from 'node:fs'
18
+ * import nodeFs from 'node:fs'
19
19
*
20
20
* const helia = createHelia({
21
21
* // ... helia config
30
30
* const { writer, out } = await CarWriter.create(cid)
31
31
*
32
32
* // `out` needs to be directed somewhere, see the @ipld/car docs for more information
33
- * Readable.from(out).pipe(fs .createWriteStream('example.car'))
33
+ * Readable.from(out).pipe(nodeFs .createWriteStream('example.car'))
34
34
*
35
35
* // write the DAG behind `cid` into the writer
36
36
* await c.export(cid, writer)
44
44
* import { car } from '@helia/car'
45
45
* import { CarReader } from '@ipld/car'
46
46
* import { Readable } from 'node:stream'
47
- * import fs from 'node:fs'
47
+ * import nodeFs from 'node:fs'
48
48
*
49
49
* const helia = createHelia({
50
50
* // ... helia config
51
51
* })
52
52
*
53
53
* // import the car
54
- * const inStream = fs .createReadStream('example.car')
54
+ * const inStream = nodeFs .createReadStream('example.car')
55
55
* const reader = await CarReader.fromIterable(inStream)
56
56
*
57
57
* await c.import(reader)
You can’t perform that action at this time.
0 commit comments