This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree 1 file changed +3
-0
lines changed 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ If no `content` is passed, then the path is treated as an empty directory
56
56
- hashAlg || hash (string): multihash hashing algorithm to use.
57
57
- wrapWithDirectory (boolean): adds a wrapping node around the content.
58
58
- onlyHash (boolean): doesn't actually add the file to IPFS, but rather calculates its hash.
59
+ - pin (boolean, default true): pin this object when adding.
59
60
60
61
` callback ` must follow ` function (err, res) {} ` signature, where ` err ` is an error if the operation was not successful. ` res ` will be an array of:
61
62
@@ -109,6 +110,7 @@ Returns a Readable Stream of class Duplex, where objects can be written of the f
109
110
- progress (function): a function that will be called with the byte length of chunks as a file is added to ipfs.
110
111
- hashAlg || hash (string): multihash hashing algorithm to use
111
112
- wrapWithDirectory (boolean): adds a wrapping node around the content
113
+ - pin (boolean, default true): pin this object when adding.
112
114
113
115
** Example:**
114
116
@@ -158,6 +160,7 @@ Returns a Pull Stream, where objects can be written of the forms
158
160
- progress (function): a function that will be called with the byte length of chunks as a file is added to ipfs.
159
161
- hashAlg || hash (string): multihash hashing algorithm to use
160
162
- wrapWithDirectory (boolean): adds a wrapping node around the content
163
+ - pin (boolean, default true): pin this object when adding.
161
164
162
165
** Example:**
163
166
You can’t perform that action at this time.
0 commit comments