server-upload

0.0.3 • Public • Published

Description

Upload the local file to the specified directory in the server

How to install

npm install -g server-upload

Usage

In the project directory, create the upload.config.js file

module.exports = {
  server: {
    host: '192.168.1.1',
    port: 22,
    username: 'username',
    password: 'password',
    privateKey: require('fs').readFileSync('/key')
  },
  localPath: '/localPath',
  remotePath: '/home/remotePath'
}

Run command server-upload

Readme

Keywords

none

Package Sidebar

Install

npm i server-upload

Weekly Downloads

0

Version

0.0.3

License

ISC

Unpacked Size

4.05 kB

Total Files

3

Last publish

Collaborators

  • zstring