Skip to content

tomgasson/gulp-ftp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-ftp Build Status

Upload files to an FTP-server

Useful for uploading and deploying things.

Install

Install with npm

npm install --save-dev gulp-ftp

Example

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

About

Upload files to an FTP-server

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%