Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Upload files to an FTP-server

branch: master

1.0.1

latest commit 5d14f8beb9
Sindre Sorhus authored
.editorconfig tweaks
.gitattributes tweaks
.gitignore tweaks
.jshintrc tweaks
.travis.yml init
index.js tweaks
license tweaks
package.json 1.0.1
readme.md tweaks
test.js bump deps and improved error handling

readme.md

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 () {
    return 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

Something went wrong with that request. Please try again.