Socket
Socket
Sign inDemoInstall

url-to-sftp

Package Overview
Dependencies
74
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    url-to-sftp

Transfer files from http links to SFTP


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

url-to-sftp

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


Install

$ npm install url-to-sftp

Example

    var client = require('url-to-sftp');
    var scpOpts = {
                      host: 'test.rebex.net',
                      username: 'demo',
                      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');  
    });

Transfer an http file to SFTP

FAQs

Last updated on 14 Mar 2016

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