gulp-ftp

Upload files to an FTP-server

npm install gulp-ftp
13 downloads in the last day
49 downloads in the last week
247 downloads in the last month

gulp-ftp Build Status

Upload files to an FTP-server

Useful for uploading and deploying things.

Install

$ npm install --save-dev gulp-ftp

Usage

var gulp = require('gulp');
var ftp = require('gulp-ftp');

gulp.task('default', function () {
    gulp.src('src/*')
        .pipe(ftp({
            host: 'website.com',
            user: 'johndoe',
            pass: '1234'
        }));
});

API

ftp(options)

options.host

Required
Type: String

options.port

Type: Number
Default: 21

options.user

Type: String
Default: 'anonymous'

options.pass

Type: String
Default: '@anonymous'

options.remotePath

Type: String
Default: '/'

The remote path to upload too.

Doesn't have to exist as jsftp-mkdirp is used.

License

MIT © Sindre Sorhus

npm loves you