npm.io
0.1.1 • Published 7 years agoCLI

mw-downloader

Licence
ISC
Version
0.1.1
Deps
3
Size
18 kB
Vulns
1
Weekly
0

MW-Downloader

Command-line utility for resumable downloads

Install

$ npm install -g mw-downloader

Help

$ mwd --help
$ mwd url --help

Usage

$ mwd url [options] <url>

Basic example:

$ mwd url http://remote-server.com/example.zip

This command creates an "example.zip.mwd" file in the current directory.

When the download is finished, this file is renamed.

Options

Option Description Default value
--filename <filename> Sets the name for the downloaded file <URL file name>
--block-size <size> Size of each chunk of data to be downloaded. Examples: 512 (512 bytes), 4KB (4096 bytes, same as 4k, 4K, 4kB, 4096b, etc.), 2Mb, 1G 4Mb
--replace Overwrites the file if it already exists
--no-progress No progress bar

Example with options:

$ mwd url --filename custom_name.zip --replace --no-progress http://remote-server.com/large_file.zip

Keywords