2.0.1 • Published 2 years ago

sftpjs v2.0.1

Weekly downloads
170
License
MIT
Repository
github
Last release
2 years ago

sftpjs

This module provides quick access to the sftp functionality in mscdex/ssh2. In addition it attempts to create an API that is similar to mscdex/node-ftp with the intent of making them interchangable.

status

I intend on implementing the following methods in a compatible way with mscdex/node-ftp:

  • .connect() - done
  • .end() - done
  • .list() - done
  • .get() - done
  • .put() - done
  • .mkdir() - done
  • .rename() - done
  • .delete() - done

All other methods will be the same as defined in ssh2-streams/SFTPStream.

example

var Client = require('sftpjs');
var c = Client();

c.on('ready', function () {
  c.list(function (err, list) {
    if (err) throw err;

    console.dir(list);

    c.end();
  });
}).connect({
  host : 'thanks'
  , user : 'for'
  , password : 'allthefish'
});

install

npm install sftpjs

api

license

MIT

2.0.1

2 years ago

2.0.0

2 years ago

1.3.7

5 years ago

1.3.6

6 years ago

1.3.5

6 years ago

1.3.4

8 years ago

1.3.3

8 years ago

1.3.2

8 years ago

1.3.1

8 years ago

1.3.0

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago