Skip to content

danimajo/gulp-ftp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Upload files to an FTP-server

Resources

Stars

Watchers

Forks

Packages

No packages published