live-ftp-upload

0.1.1 • Public • Published

Live FTP Upload

Watch a directory and upload any changed files via FTP.

Useful for developing against a remote instance.

Installing

npm install live-ftp-upload

Using

require('live-ftp-upload')({
    dir : './path/to/watch',
    remoteDir : '/where/to/upload',
    connect : {
        host : 'remote-env.example.com',
        user : 'ftp-user',
        password : 'ftp-password'
    }
});

console.log('FTP uploader is watching...');

Uses node-ftp under the hood. The connect property of your options is passed verbatim to ftpClient.connect(opts), so any properties node-ftp accepts will work.

Release History

  • 0.1.1 - really works for me - support changing dir contents.
  • 0.1.0 - works for me

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i live-ftp-upload

Weekly Downloads

1

Version

0.1.1

License

none

Last publish

Collaborators

  • hitsthings