kubo-rpc-client
Version:
A client library for the Kubo RPC API
14 lines • 478 B
JavaScript
import { toUrlSearchParams } from '../lib/to-url-search-params.js';
export function createExport(client) {
return async function* dagExport(root, options = {}) {
const res = await client.post('dag/export', {
signal: options.signal,
searchParams: toUrlSearchParams({
arg: root.toString()
}),
headers: options.headers
});
yield* res.iterator();
};
}
//# sourceMappingURL=export.js.map