kubo-rpc-client
Version:
A client library for the Kubo RPC API
12 lines • 409 B
JavaScript
import { toUrlSearchParams } from './lib/to-url-search-params.js';
export function createStop(client) {
return async function stop(options = {}) {
const res = await client.post('shutdown', {
signal: options.signal,
searchParams: toUrlSearchParams(options),
headers: options.headers
});
await res.text();
};
}
//# sourceMappingURL=stop.js.map