Socket
Socket
Sign inDemoInstall

baha-anime-dl-ext

Package Overview
Dependencies
33
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    baha-anime-dl-ext

This tool is used to download low quality Anime from Bahamut.


Version published
Weekly downloads
38
decreased by-9.52%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Bahamut Anime Downloader Extensions

This package contains useful functions for Bahamut Anime Downloader.

Features

  • build: unlike the original build function, you can craft a new fetch function with your own options, including custom headers, cookies, and cache.
  • merge: the merge function accepts a Download object that returned from Downloader.download method, it automatically waits and merges the downloaded files into a single mp4 file. (This will not work if ffmpeg or file system is not supported)

Example

import { Downloader, default_config } from "baha-anime-dl";
import { build, merge } from "baha-anime-dl-ext";
import fs from "node:fs";

main();

async function main() {
    const config = {
        ...default_config(),
        fetcher: build({
            headers: {
                "User-Agent": "Mozilla/5.0 Custom User Agent",
            },
        }),
    };

    const downloader = new Downloader(config);

    const download = downloader.download(34886);
    const merged = await merge(download);
    fs.writeFileSync("output.mp4", Buffer.from(merged));
}

FAQs

Last updated on 10 Oct 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc