Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

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).

  • 1.0.5
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
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

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