Socket
Socket
Sign inDemoInstall

sftp-upload-plugin

Package Overview
Dependencies
23
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sftp-upload-plugin

upload thought SFTP after build


Version published
Weekly downloads
6
Maintainers
1
Install size
1.60 MB
Created
Weekly downloads
 

Readme

Source

sftp-upload-plugin

upload code through sftp when finish build

##Installation

npm i sftp-upload-plugin

##Usage use in your webpack plugin config

// in your webpack config
const sftpUploadPlugin = require('sftp-upload-plugin');

plugins: [
    new sftpUploadPlugin({
      host: '120.77.xxx.xxx',
      port: '22',
      username: 'founder',
      password: 'xxxxxxx',
      localPath: '/Users/xiaoming/Desktop/demo/dist',
      remotePath: '/opt/demo/dist'
    })
]

##Result

when webpack bundle finish you'll see like

--------- start loading ---------
 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 100% | ETA: 0s | 151/151
--------- finish ---------

##License MIT

Keywords

FAQs

Last updated on 13 Aug 2019

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