Socket
Socket
Sign inDemoInstall

sftp-sync-sc

Package Overview
Dependencies
119
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sftp-sync-sc

模块提供基于node,利用sftp模式,同步服务端与客户端的文件夹。


Version published
Weekly downloads
13
increased by550%
Maintainers
1
Install size
3.85 MB
Created
Weekly downloads
 

Readme

Source

sftp-sync-sc

模块提供基于node,利用sftp模式,同步服务端与客户端的文件夹。

const sync = require("sftp-sync-sc")

sync({
		host:'ip地址',
		port:'端口一般是22',
		username:'sftp用户名',
		password:'sftp密码',
		ignored:["node_modules",".log"],
		remoteFilePath:"服务端路径地址",
		localFilePath:__dirname +"\\"
})

注意

创建文件并不触发上传,只有保存后才进行上传

Keywords

FAQs

Last updated on 11 Mar 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc