1.0.6 • Published 3 years ago

sftp-j v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Installation

$ npm i sftp-j

Basic Usage

const SftpTool = require("sftp-j");
const sftp = new SftpTool({
  host: "your server ip address",
  port: "",
  username: "root",
  password: "******",
});

//download file
(async () => {
  //local file    remote file
  let res = await sftp.downloadFile("./1.txt", "/root/test/1.txt");
  console.log(res);
})();

//uploadFile file
(async () => {
  let res = await sftp.uploadFile("./1.txt", "/root/test/1.txt");
  console.log(res);
})();
1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago