0.0.15 • Published 5 years ago

@xhonker/deploy v0.0.15

Weekly downloads
-
License
MIT
Repository
-
Last release
5 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

5 years ago

0.0.15

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.10

5 years ago

0.0.11

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago