npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

get-aria2

v1.0.8

Published

This package downloads the latest version of aria2c for Windows, Mac, Linux and Android

Downloads

24

Readme

get-aria2

NPM

Build Status FOSSA Status

This package contains a tool that will download the latest version of aria2 from GitHub.

NPM

If the package is added as a dependency in another node module (npm install get-aria2) it will write the aria2c binary to node_modules/.bin. If installed globally (npm install -g get-aria2) the binary will be added to your PATH so you can use aria2c on the command line.

To use with a proxy set the "HTTP_PROXY" environment variable. Example: HTTP_PROXY=http://blah-blah:2323.

All platforms but linux are downloaded from "aria2/aria2". Linux is downloaded from "q3aql/aria2-static-builds".

Command-Line

This package also contains a tool for downloading aria2 on different platforms.

The syntax is: get-aria2 [destination] [arguments]

| Argument | Alias | Description | |------------|-------|---------------------------------------------------------------------------------------------------| | --platform | -p | Platform to download for. "win32" (windows), "darwin" (mac), "linux" and "android" are supported. | | --arch | -a | Architecture to download for. "x64", "x32" or "arm" Are supported. See below. | | --chmod | -c | Does chmod 777 on the binary making it executab | | --ext | -e | Adds ".exe" to the path for the binary if on windows. | | --quiet | -q | Is silent except for errors. |

Example: get-aria2 win-32-aria2 -p win32 -a x32 -e

Will download aria2c to ./win-32-aria2.exe.

If no destination is provided will write to stdout.

Platform/Architecture

  • "darwin" (mac) - only supports "x64".
  • "win32" (windows) - supports "x32" and "x64".
  • "linux" - supports "x32", "x64" and "arm". Using "arm" with "linux" will download a binary built for the RaspberryPi.
  • "android" - only supports "arm".

Using any combination not listed above will result in an error.

By default it will use your current platform and architecture.

Programmatic Usage

This package contains a getAria2(platform, arch) function which will return a Stream containing the binary.

You can also programmatically get the path to aria2c by calling aria2cPath().

Documentation is available under docs/. A copy of the documentation is available online here.

Tests

Tests are written in mocha. Run npm test.