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

turbo-downloader

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turbo-downloader

Fastest file downloader for Node.js

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
29
increased by314.29%
Maintainers
1
Weekly downloads
 
Created
Source

turbo-downloader

Fastest file downloader for Node.js

Features:

  • Download using multiple connections
  • Aborting
  • Resuming after application restart
  • Smart retry on fail
  • Supports http/https
  • Supports http redirects
  • Usable on vanilla nodejs, electron, nwjs
  • TypeScript typings

Install

$ npm install --save turbo-downloader

Usage

import TurboDownloader from 'turbo-downloader';

const downloader = new TurboDownloader({
    url: 'https://example.com/my_file',
    destFile: '/some/path/to/save',
    chunkSize: 4096, // Size of chunk (default 16MB)
    concurrency: 8, // Number of connections (default 4)
    retryCount: 10, // Number of downloading retries of each chunk (default 10)
    canBeResumed: true // If true, you can resume download next time if current download failed (downloader save .turbodownload file near destination file)
});

await downloader.download((downloaded, total) =>{
    console.log(`Downloaded ${downloaded} of ${total}`);
});

downloader.abort(true /* if true, you can resume downloading next time (downloader save .turbodownload file near destination file) */);

Keywords

FAQs

Package last updated on 22 Apr 2021

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