new IpfsAPI(host_or_multiaddr, port)
Create a ipfs api
Parameters:
Name | Type | Description |
---|---|---|
host_or_multiaddr |
string | |
port |
number |
Methods
add(files, opts, cb)
Add a file/many files to IPFS returning the hash and name. The
name value will only be set if you are actually sending a file.
Parameters:
Name | Type | Description |
---|---|---|
files |
||
opts |
object | |
cb |
function |