MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / serializeOrigin

Function serializeOrigin

out/cli.cjs:4558–4565  ·  view source on GitHub ↗
(tuple)

Source from the content-addressed store, hash-verified

4556 return output;
4557 }
4558 function serializeOrigin(tuple) {
4559 let result = `${tuple.scheme}://`;
4560 result += serializeHost(tuple.host);
4561 if (tuple.port !== null) {
4562 result += `:${tuple.port}`;
4563 }
4564 return result;
4565 }
4566 function serializePath(url2) {
4567 if (hasAnOpaquePath(url2)) {
4568 return url2.path;

Calls 1

serializeHostFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…