@khasama/media-downloader
v1.0.2
Published
Video downloader from some platforms like ixigua, douyin, ...
Downloads
214
Readme
Installation:
Install the library using npm:
npm install @khasama/media-downloader
Usage:
Import the required function:
import { ixiguaDownloader } from "@khasama/media-downloader";
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!");
}
});