blackhole-dl

1.1.2 • Public • Published

blackhole-dl

npm CI Status dependencies Status devDependencies Status

A CLI for downloading files from BlackHole

Usage

Install blackhole-dl by running:

yarn global add blackhole-dl

Then, run the CLI, passing it the URL to a file:

blackhole-dl 'https://app.blackhole.run/#55913751ec1EX5YjX7bjY71n8z3sZZaaacGZ26LahXN4'

blackhole-dl uses Chrome to open the URL and download the file.

Also, we provide a JavaScript API for writing your own scripts:

import download from 'blackhole-dl'

async function run() {
  const events = download('https://app.blackhole.run/#55913751ec1EX5YjX7bjY71n8z3sZZaaacGZ26LahXN4')
  for await (const {fileName, progress} of events) {
    console.log(fileName, progress)
  }
}
run()

Readme

Keywords

none

Package Sidebar

Install

npm i blackhole-dl

Weekly Downloads

1

Version

1.1.2

License

MIT

Unpacked Size

5.59 kB

Total Files

6

Last publish

Collaborators

  • vinsonchuong