@xhonker/deploy
TypeScript icon, indicating that this package has built-in type declarations

0.0.15 • Public • Published

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

Key Type Default Description
username string - username
password string - pwd
host string 127.0.0.1 remote host
port number 21 remote port
protocol "ftp"| "sftp" ftp protocol
remotePath string os.tmpdir() remote upload path
sourcePath string process.cwd() source path
passive boolean true ftp passive mode

Package Sidebar

Install

npm i @xhonker/deploy

Weekly Downloads

1

Version

0.0.15

License

MIT

Unpacked Size

16.5 kB

Total Files

4

Last publish

Collaborators

  • xhonker