You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/index.js
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,7 @@ module.exports = {
54
54
55
55
/**
56
56
* Same as https://github.com/ipfs/js-ipfs/blob/master/README.md#ipfs-constructor
57
+
*
57
58
* @typedef {Object} IpfsOptions
58
59
* @property {string|Object} [repo] - The file path at which to store the IPFS node’s data. Alternatively, you can set up a customized storage system by providing an ipfs.Repo instance.
59
60
* @property {boolean|Object} [init=true] - Initialize the repo when creating the IPFS node. Instead of a boolean, you may provide an object with custom initialization options. https://github.com/ipfs/js-ipfs/blob/master/README.md#optionsinit
* @property {object} [config] - Modify the default IPFS node config. This object will be merged with the default config; it will not replace it. The default config is documented in the js-ipfs config file docs. https://github.com/ipfs/js-ipfs/blob/master/README.md#optionsconfig
67
68
* @property {object} [ipld] - Modify the default IPLD config. This object will be merged with the default config; it will not replace it. Check IPLD docs for more information on the available options. https://github.com/ipfs/js-ipfs/blob/master/README.md#optionsipld
68
-
* @property {object|function} [libp2p] - The libp2p option allows you to build your libp2p node by configuration, or via a bundle function. https://github.com/ipfs/js-ipfs/blob/master/README.md#optionslibp2p
69
+
* @property {object | Function} [libp2p] - The libp2p option allows you to build your libp2p node by configuration, or via a bundle function. https://github.com/ipfs/js-ipfs/blob/master/README.md#optionslibp2p
* @property {Boolean} [disposable=true] - A new repo is created and initialized for each invocation, as well as cleaned up automatically once the process exits.
79
+
* @property {boolean} [disposable=true] - A new repo is created and initialized for each invocation, as well as cleaned up automatically once the process exits.
79
80
* @property {string} [type] - The daemon type, see below the options:
80
81
* - go - spawn go-ipfs daemon node
81
82
* - js - spawn js-ipfs daemon node
@@ -84,10 +85,10 @@ module.exports = {
84
85
* @property {Array} [args] - Custom cli args.
85
86
* @property {Object} [ipfsHttpModule] - Reference to a IPFS HTTP Client object.
86
87
* @property {Object} [ipfsModule] - Reference to a IPFS API object.
87
-
* @property {String} [ipfsBin] - Path to a IPFS exectutable.
88
+
* @property {string} [ipfsBin] - Path to a IPFS exectutable.
88
89
* @property {IpfsOptions} [ipfsOptions] - Options for the IPFS node.
89
90
* @property {boolean} [forceKill] - Whether to use SIGKILL to quit a daemon that does not stop after `.stop()` is called. (default true)
90
-
* @property {Number} [forceKillTimeout] - How long to wait before force killing a daemon in ms. (default 5000)
91
+
* @property {number} [forceKillTimeout] - How long to wait before force killing a daemon in ms. (default 5000)
0 commit comments