MCPcopy Create free account
hub / github.com/mscdex/ssh2 / createAgent

Function createAgent

lib/agent.js:391–398  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

389// being interchangeable
390const WINDOWS_PIPE_REGEX = /^[/\\][/\\]\.[/\\]pipe[/\\].+/;
391function createAgent(path) {
392 if (process.platform === 'win32' && !WINDOWS_PIPE_REGEX.test(path)) {
393 return (path === 'pageant'
394 ? new PageantAgent()
395 : new CygwinAgent(path));
396 }
397 return new OpenSSHAgent(path);
398}
399
400const AgentProtocol = (() => {
401 // Client->Server messages

Callers 3

connectMethod · 0.85
doNextAuthMethod · 0.85
constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…