ipfs-http-client
Version:
A client library for the IPFS HTTP API
20 lines (15 loc) • 435 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var core = require('../../../lib/core.js');
var add = require('./add.js');
var ls = require('./ls.js');
var rm = require('./rm.js');
function createService(config) {
const client = new core.Client(config);
return {
add: add.createAdd(client),
ls: ls.createLs(client),
rm: rm.createRm(client)
};
}
exports.createService = createService;