This repository was archived by the owner on Aug 12, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -141,12 +141,20 @@ exportEvent.on('data', (result) => {
141
141
142
142
## Exporter: API
143
143
``` js
144
- const Importer = require (' ipfs-unixfs-engine' ).exporter
144
+ const Exporter = require (' ipfs-unixfs-engine' ).exporter
145
145
```
146
146
147
- The exporter is a readable stream in object mode that returns an object ```{
148
- content: stream, path: 'path' }``` by the multihash of the file from the dag
149
- service.
147
+ The exporter is a readable stream in object mode that outputs objects of the
148
+ form
149
+
150
+ ``` js
151
+ {
152
+ path: ' a name' ,
153
+ content: (Buffer or Readable stream)
154
+ }
155
+ ```
156
+
157
+ by the multihash of the file from the DAG Service.
150
158
151
159
152
160
## Install
Original file line number Diff line number Diff line change 2
2
"name" : " ipfs-unixfs-engine" ,
3
3
"version" : " 0.8.0" ,
4
4
"description" : " JavaScript implementation of the unixfs Engine used by IPFS" ,
5
- "main" : " lib /index.js" ,
5
+ "main" : " src /index.js" ,
6
6
"jsnext:main" : " src/index.js" ,
7
7
"scripts" : {
8
8
"lint" : " aegir-lint" ,
70
70
" greenkeeperio-bot <support@greenkeeper.io>" ,
71
71
" nginnever <ginneversource@gmail.com>"
72
72
]
73
- }
73
+ }
You can’t perform that action at this time.
0 commit comments