Socket
Socket
Sign inDemoInstall

http-sftp

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-sftp

Transfer files from http links to SFTP


Version published
Maintainers
1
Created
Source

http-sftp

A library for transferring files from an http link to an SFTP server.


Install

$ npm install http-sftp

Example

    var client = require('http-sftp');
    var scpOpts = {
                      host: 'sftp.hootsuitemedia.com',
                      username: 'activepbx',
                      password: 'XXXXXX' //you can also use `privateKey` with a key file and omit password
                      path: ''
                  }
    var link = 'https://raw.githubusercontent.com/request/request/master/README.md';
    var destination = '/public/test.txt';
    client.send(link, scpOpts, destination, function(err, resp){
          err ? console.error(err) : console.log('completed transfer');  
    });

FAQs

Package last updated on 06 Mar 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc