ipfs-http-client
Version:
A client library for the IPFS HTTP API
12 lines • 330 B
JavaScript
import { Client } from '../../../lib/core.js';
import { createAdd } from './add.js';
import { createLs } from './ls.js';
import { createRm } from './rm.js';
export function createService(config) {
const client = new Client(config);
return {
add: createAdd(client),
ls: createLs(client),
rm: createRm(client)
};
}