kubo-rpc-client-esm-cjs
Version:
A client library for the Kubo RPC API
14 lines • 430 B
JavaScript
import { configure } from './lib/configure.js';
export const createGetEndpointConfig = configure(api => {
return () => {
const url = new URL(api.opts.base || '');
return {
host: url.hostname,
port: url.port,
protocol: url.protocol,
pathname: url.pathname,
'api-path': url.pathname
};
};
});
//# sourceMappingURL=get-endpoint-config.js.map