0.0.15 • Published 6 years ago

@xhonker/deploy v0.0.15

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

simple SFTP/FTP sync deploy

Install

npm i @xhonker/deploy -D
OR
yarn add @xhonker/deploy -D

Usage

const deploy = require('@xhonker/deploy');
deploy
  .start({
    username: 'user',
    password: 'pwd',
    host: '127.0.0.1',
    port: 21,
    protocol: 'ftp',
    remotePath: '/tmp',
    sourcePath: process.cwd(),
    passive: false, // active mode
  })
  .then(() => console.log('complete'))
  .cache((_) => console.error('fail'));

EntryOptions

KeyTypeDefaultDescription
usernamestring-username
passwordstring-pwd
hoststring127.0.0.1remote host
portnumber21remote port
protocol"ftp"| "sftp"ftpprotocol
remotePathstringos.tmpdir()remote upload path
sourcePathstringprocess.cwd()source path
passivebooleantrueftp passive mode
0.0.14

6 years ago

0.0.15

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.10

6 years ago

0.0.11

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago