Skip to content

vinsonchuong/blackhole-dl

Repository files navigation

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()

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published