https://github.com/mapleincode/sftp-cli
https://github.com/mapleincode/sftp-cli
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mapleincode/sftp-cli
- Owner: mapleincode
- Created: 2017-07-28T09:14:39.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-24T07:20:37.000Z (over 6 years ago)
- Last Synced: 2024-08-08T20:37:32.825Z (over 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sftp-cli
Callback 版本 sftp-cli,依赖 [ssh2-sftp-client](https://github.com/jyu213/ssh2-sftp-client)
## Install
```bash
npm install sftp-cli --save
```
## Usage
```javascript
const SftpCli = require('sftp-cli');
const client = new SftpCli(host, username, password, options);
client.connect(function() {
client.list("/home/vagrant", function(err, result) {
// do
});
});
```