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

bigdownloader

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

bigdownloader

Download big files without worries. Included auto-resume

  • 1.0.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

node-bigdownloader

Download big files, with auto resume. This module assumes you know the hash

Example:

"use strict";
var path			= require('path');
var BigDownloader 	= require('./BigDownloader.js');

var downloader = new BigDownloader({
	url		: 'https://path.com/to/a/very/large/file',
	path	: '/tmp/out.tar.gz',
	hash	: 'be8544f91c22e859e6b330e6875b5f87ae41b33c',
	size	: 144858835, // if not given, extract size from headers
	debug	: true
})

downloader
	.on('start', function(){
		console.log('onStart');
	})
	.on('error', function(err){
		console.log('onError', err);
	})
	.on('progress', function(progress){
		console.log(progress.total);
		console.log(progress.done);
		console.log(progress.percent);
	})
	.on('finish', function(){
		console.log('onFinish');
	})
	.start()

FAQs

Package last updated on 22 Aug 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