Socket
Book a DemoInstallSign in
Socket

sftp-folder-upload

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sftp-folder-upload

upload an entire folder to your server by sftp with a simple config

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

sftp-folder-upload

upload an entire folder to your server by sftp with a simple config

就。。。。。给个 config 然后通过 sftp 来上传整个文件夹。。。

how 2 use

$ npm install sftp-folder-upload

usage

// Import sftp-folder-upload 
const uploader = require('sftp-folder-upload')
    , path = require('path')

uploader({
    server: {
        host: '127.0.0.1',
        port: '22',
        username: 'root',
        password: '******'
    },
    // The Foloder You Want To Upload 
    locationBase: path.join(__dirname, 'just_test_folder'), 
    // The Destination Of Uploading 
    serverBase: '/home/just_test_folder'
}).then(allDone => {
    // Resolved When All File Uploaded 
    console.log('OK All Uploaded'); 
}); 

LICENSE

MIT

Keywords

sftp

FAQs

Package last updated on 19 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.