am using scp2 for file transfer in my Node.js program. As per the instruction on npmjs.com, I tried to do following:
var Client = require('scp2').Client;
var client = new Client({
port: 22
});
But in the above code, the program fails to instantiate Client and it complains that Client is undefined. Am I missing somthing in the document? Can you please help?
am using scp2 for file transfer in my Node.js program. As per the instruction on npmjs.com, I tried to do following:
var Client = require('scp2').Client;
var client = new Client({ port: 22 });
But in the above code, the program fails to instantiate Client and it complains that Client is undefined. Am I missing somthing in the document? Can you please help?