Socket
Socket
Sign inDemoInstall

skipper-ftp

Package Overview
Dependencies
3
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    skipper-ftp

This is used to upload files directly to FTP server skipper adapter


Version published
Weekly downloads
15
Maintainers
1
Created
Weekly downloads
 

Readme

Source

skipper emblem - face of a ship's captain Skipper FTP Adapter

npm npm

This is used to upload files directly to FTP server using skipper and node-ftp

Installation

$ npm install skipper-ftp --save

Also make sure you have skipper installed as your body parser.

Skipper is installed by default in Sails v0.10.

Usage

req.file('file')
.upload({
  adapter: require('skipper-ftp'),
  host: 'ftp.localhost',
  port:'21',
  username:'root',
  password:'root',
  path:'/'
}, function whenDone(err, uploadedFiles) {
  if (err) return res.negotiate(err);
  else return res.ok({
    files: uploadedFiles
  });
});
OptionTypeDetails
host((string))An optional parameter of the host or domain/IP. Default value: localhost
port((number))An optional parameter for port. Default value :21
path((string))An optional parameter if you wish to save the file in a particular path in your file server. Default value :/
user((string))An optional parameter for authentication. Default value :root
password((string))An optional parameter for authentication. Default value :root

check node-ftp options for more

UploadedFiles

The meta data is returned along with extra which may contain error field. The error is going to return ana error encountered while uploading the file to your FTP server

Testing

  • Clone this repository

  • Install all development dependencies

$ npm install
  • Then run test
$ npm test

Contribute

Fork this repo and push in your ideas. Do not forget to follow skipper-adapter-test standards

License

MIT License (MIT)

Keywords

FAQs

Last updated on 09 Oct 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc