molnia
v0.0.15
Published
Fast and lightweight library for downloading files
Downloads
82
Maintainers
Readme
molnia
Utility for easy file downloading: fast, lightweight, cross-platform and flexible.
Description
A file download utility written in JavaScript with minimal dependencies. It can be used both as a command line interface and as a library for use in third-party Node.js projects.
Quick start
Command-line interface
Download and install Node.js. Run app:
npx molnia [options] url1 [url2] [url...]
Example:
npx molnia --output C:\Users\John\Downloads\10Mb.dat https://proof.ovh.net/files/10Mb.dat
Library
Install package using NPM:
npm i molnia
Use in your project:
import { download } from 'molnia';
const options = { output: `C:\Users\John\Downloads\10Mb.dat` };
await download('https://proof.ovh.net/files/10Mb.dat', options);
Features
- Concurrency: chunk download queue with size limitations
- Retry in case of request failure
- Proxy support
- Multiple protocols support: HTTP, HTTPS
- Minimal dependencies and reduced code size
- Command-line interface