3.0.0 • Published 1 year ago

downit v3.0.0

Weekly downloads
7
License
WTFPL
Repository
github
Last release
1 year ago

🎢 Downit - Resume downloads in node

Downit simply downloads a file from a URL to a destination on the disk, resuming previous progress if the server supports the Range header.

Install

npm i downit

Usage

downit(url, dest, [options])

const downit = require('downit')

downit(url, dest, {
  headers: { Authorization: 'Bearer Of Good News' },
  onprogress: (got, total) => console.log('Got ', got, 'B of ', total, 'B'),
  onrequest: req => { /* The node request instance */ },
  onresponse: res => { /* The node response instance */ }
}).then(() => {
  console.log('Downed it')
}).catch(e => {
  console.error('Dropped it, due to ', e)
})

CLI

Downit also works on the command line.

Installation

npm i downit -g

Usage

downit url [dest]
3.0.0

1 year ago

3.0.0-beta.1

2 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.1

4 years ago

2.0.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago