0.0.15 • Published 4 years ago

@xhonker/deploy v0.0.15

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

4 years ago

0.0.15

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago