1.0.2 • Published 11 months ago

@khasama/media-downloader v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Installation:

Install the library using npm:

npm install @khasama/media-downloader

Usage:

  1. Import the required function:

    import { ixiguaDownloader } from "@khasama/media-downloader";
  2. Call the ixiguaDownloader function with the following arguments:

    • url: The URL of the Ixigua video you want to download (string).
    • dir: The directory where you want to save the downloaded video (string). This directory will be created if it doesn't exist.
    • callback ({ process, filename, err }): callback function.

Example:

import { ixiguaDownloader } from "@khasama/media-downloader";
const videoUrl = "https://www.ixigua.com/7161999829802209795/";
const downloadDir = "./downloads";

ixiguaDownloader(videoUrl, downloadDir, ({ err }) => {
  if (err) {
    console.error("Error downloading video:", err);
  } else {
    console.log("Video downloaded successfully!");
  }
});
1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago