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