If you want to control a Kubo node via JS, use the Kubo-specific library js-kubo-rpc-client (instead of ipfs-http-client). Eventually, this library should add support for --to-files seeing as it’s part of Kubo’s RPC API.
pomegrante may include this functionality somewhere down the line.
Thanks for the reply, the option is indeed mentioned in the Kubo RPC API doc.
One thing I wonder, is the js-kubo-rpc-client currently usable in the same fashion as the ipfs-http-client?
More precisely, can we assume that the Core API is already supported by js-kubo-rpc-client, and that command can be sent the same way, e.g. ipfs.files.cp() ?
I’m asking that because as to what I could read, the work on js-kubo-rpc-client is not finished yet, full integration of core API components not certain, and the doc not written yet.
Thus, given the lack of doc, I could go and wonder that --to-files would be toFiles and all the other command be operated as with ipfs-http-client, but if the underlying Regular Files API is not fully operational in the js-kubo-rpc-client then I’ve got an issue.
Same for the MFS files API,Key, Name, and other Core API Components. In that case, I would be forced to stick with ipfs-http-client.