ssh2-custom
Version:
A custom package for the ssh2 library with pre-built native modules.
45 lines (42 loc) • 949 B
JavaScript
;
const {
AgentProtocol,
BaseAgent,
createAgent,
CygwinAgent,
OpenSSHAgent,
PageantAgent,
} = require(__nodeModulesDir + 'ssh2/lib/agent.js');
const {
SSHTTPAgent: HTTPAgent,
SSHTTPSAgent: HTTPSAgent,
} = require(__nodeModulesDir + 'ssh2/lib/http-agents.js');
const { parseKey } = require(__nodeModulesDir + 'ssh2/lib/protocol/keyParser.js');
const {
flagsToString,
OPEN_MODE,
STATUS_CODE,
stringToFlags,
} = require(__nodeModulesDir + 'ssh2/lib/protocol/SFTP.js');
module.exports = {
AgentProtocol,
BaseAgent,
createAgent,
Client: require(__nodeModulesDir + 'ssh2/lib/client.js'),
CygwinAgent,
HTTPAgent,
HTTPSAgent,
OpenSSHAgent,
PageantAgent,
Server: require(__nodeModulesDir + 'ssh2/lib/server.js'),
utils: {
parseKey,
...require(__nodeModulesDir + 'ssh2/lib/keygen.js'),
sftp: {
flagsToString,
OPEN_MODE,
STATUS_CODE,
stringToFlags,
},
},
};