New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
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

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc