Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

curldownloader

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

curldownloader

A simple downloader using curl

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Node.js Curl Downloader

Download any file without blocking your server using the power of curl.

Download and install

You can watch and keep track of releases on GitHub

Install through NPM

 npm install curldownloader

OR

  • Download node_download.js
  • Include in project

Example usage

var Downloader = require('curldownloader');

var download = new Downloader.CurlDownloader();

	download.setDirToSave('./');
    
    // The filename is optional
	download.downloadFile('http://ipv4.download.thinkbroadband.com/10MB.zip', 'filename.zip');
	
	download.eventEmitter.on('progress', function(percent, speed) {
		console.log('Percent: ' + percent + ' / Speed: ' + speed);
	});

	download.eventEmitter.on('end', function(code) {
		if (code == 0) {
			console.log('Downloaded ' + requested_url + ' Successfully.');
		} else {
			console.log('Download did not succeed.  Exited with code:' + code);
		}
		
		res.end('URL: ' + requested_url + ' Downloaded');
	});

FAQs

Package last updated on 25 Apr 2017

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