MCPcopy
hub / github.com/ollm/OpenComic / getPort

Function getPort

scripts/server-client.js:40–45  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

38}
39
40function getPort(path)
41{
42 path = posixPath(path);
43
44 return +app.extract(/^[a-z0-9]+\:\/\/?[^\/\\]+:([0-9]+)\//, path, 1);
45}
46
47function getAdress(path)
48{

Callers 1

clientFunction · 0.85

Calls 1

posixPathFunction · 0.70

Tested by

no test coverage detected