🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

aria2c-test-1

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

aria2c-test-1

This is an **unofficial** npm package containing the unmodified versions of the `linux`, `darwin` and `win32` binaries of aria2c, [obtained from here](https://github.com/aria2/aria2/releases/tag/release-1.35.0).

unpublished
latest
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

aria2c

This is an unofficial npm package containing the unmodified versions of the linux, darwin and win32 binaries of aria2c, obtained from here.

All the licenses and credits belong to the original authors of the tool.

Usage:

The package has been specifically published because most of the other downloading libraries and solutions failed for a particular use case. While it's not recommended to use this if you've other options to download files in Node.js, you can use it like this if you absoutely have to:

const Exec = require('child_process').execFile

let execPath = './node_modules/aria2c-unofficial/'

switch (process.platform) {
  case 'win32':
    execPath += 'aria2c-win32.exe'
    break
  case 'darwin':
    execPath += 'aria2c-darwin'
  default:
    execPath += 'aria2c-linux'
    break
}

const downloader = Exec(execPath, ['-i', './files.txt', '--auto-file-renaming=false'])

downloader.stdout.on('data', data => {
  console.log(data)
})

In the above example, a files.txt file is generated before the above snippet. For more information on the file structure and other possible options, refer to the official documentation of aria2c.

Note: The package only consists of the 64-bit version of the Windows binary.

FAQs

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