blackhole-dl

A CLI for downloading files from BlackHole

Usage no npm install needed!

<script type="module">
  import blackholeDl from 'https://cdn.skypack.dev/blackhole-dl';
</script>

README

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