{"id":13576415,"url":"https://github.com/magneum/youtube-exec","last_synced_at":"2025-04-12T03:33:32.622Z","repository":{"id":173215810,"uuid":"650400551","full_name":"magneum/youtube-exec","owner":"magneum","description":"🔥🎶YouTube-Exec: Unleash the Power of YouTube Downloads! ","archived":false,"fork":false,"pushed_at":"2023-06-10T06:28:18.000Z","size":3160,"stargazers_count":19,"open_issues_count":7,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-13T11:41:38.927Z","etag":null,"topics":["audio","download","downloader","exec","ffmpeg","fluent-ffmpeg","stream","video","youtube","youtube-dl-exec","youtube-exec","ytdlp"],"latest_commit_sha":null,"homepage":"https://bit.ly/magneum","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/magneum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-06-07T01:59:42.000Z","updated_at":"2024-08-05T09:27:21.000Z","dependencies_parsed_at":"2023-12-20T16:49:56.193Z","dependency_job_id":"f4b1539b-5622-47f1-890c-a7e21068d7a2","html_url":"https://github.com/magneum/youtube-exec","commit_stats":{"total_commits":69,"total_committers":1,"mean_commits":69.0,"dds":0.0,"last_synced_commit":"3e5aad862145c1204f16a1d5a67963ca9f392ca5"},"previous_names":["magneum/ytdl-exec","magneum/youtube-exec"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magneum%2Fyoutube-exec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magneum%2Fyoutube-exec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magneum%2Fyoutube-exec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magneum%2Fyoutube-exec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magneum","download_url":"https://codeload.github.com/magneum/youtube-exec/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248513153,"owners_count":21116764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","download","downloader","exec","ffmpeg","fluent-ffmpeg","stream","video","youtube","youtube-dl-exec","youtube-exec","ytdlp"],"created_at":"2024-08-01T15:01:10.034Z","updated_at":"2025-04-12T03:33:32.604Z","avatar_url":"https://github.com/magneum.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":" \u003ch1 align=\"left\"\u003e\u003cb\u003e\u003cb\u003e📥🎥 YouTube-Exec 🎥📥\u003c/b\u003e\u003c/b\u003e\u003c/h1\u003e\r\n \r\n### **⭐️ If you find YouTube-Exec useful, give it a star on [GitHub](https://github.com/magneum/youtube-exec)**\r\n\r\n\u003cdiv align=\"left\"\u003e\r\n    \u003cimg src=\"https://i.postimg.cc/RhgzxBsM/logo.png\" width=\"300\" height=\"300\"\u003e\r\n\u003c/div\u003e\r\n\r\n## **Unleash the Power of YouTube Downloads!** 💪🔥💻\r\n\r\n- Effortlessly download audio and video content from YouTube. 🎵🎬💽\r\n- Utilizes the powerful `youtube-dl-exec` library for extracting details. 📚🔍💡\r\n- Seamless fetching of files using the reliable `fluent-ffmpeg` library. 🔄⚙️🔊\r\n- Access and download your favorite audio and video treasures from YouTube. 🎉🔑💎\r\n- Say goodbye to limitations and enjoy a world of boundless possibilities. 🚫🌍🔓💫\r\n\r\n|                |                                                                                                     |\r\n| -------------- | --------------------------------------------------------------------------------------------------- |\r\n| License        | [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)                            |\r\n| Latest Version | [![npm](https://img.shields.io/npm/v/youtube-exec.svg)](https://www.npmjs.com/package/youtube-exec) |\r\n\r\n\u003ch1 align=\"left\"\u003e\u003cb\u003e\u003cb\u003eInstallation: 📥💻🔧\u003c/b\u003e\u003c/b\u003e\u003c/h1\u003e\r\n\r\nTo embark on your YouTube downloading adventure with YouTube-Exec, you'll need to have Node.js installed on your system. Fear not! The installation process is as easy as a few simple commands:\r\n\r\n- Using yarn or npm or pnpm\r\n\r\n```\r\n$ yarn add youtube-exec\r\n$ npm install youtube-exec\r\n$ pnpm install youtube-exec\r\n```\r\n\r\n\u003ch1 align=\"left\"\u003e\u003cb\u003eUsage (w/o CLI): 🖥️🔧📚\u003c/b\u003e\u003c/h1\u003e\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003e\u003cb\u003e\u003ci\u003e🎵 Download Audio 🔊\u003c/i\u003e\u003c/b\u003e\u003c/summary\u003e\r\n\r\nTo download audio from YouTube, you can use the `dlAudio` function provided by YouTube-Exec. Here's an example of how to use it:\r\n\r\n```javascript\r\nconst { dlAudio } = require(\"youtube-exec\");\r\n\r\n// Using async/await\r\ntry {\r\n  await dlAudio({\r\n    url: \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\",\r\n    folder: \"downloads\", // optional, default: \"youtube-exec\"\r\n    filename: \"filename\", // optional, default: video title\r\n    quality: \"best\", // or \"lowest\"; default: \"best\"\r\n  });\r\n  console.log(\"Audio downloaded successfully! 🔊🎉\");\r\n} catch (err) {\r\n  console.error(\"An error occurred:\", err.message);\r\n}\r\n\r\n// Using Promises\r\ndlAudio({\r\n  url: \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\",\r\n  folder: \"downloads\", // optional, default: \"youtube-exec\"\r\n  filename: \"filename\", // optional, default: video title\r\n  quality: \"best\", // or \"lowest\"; default: \"best\"\r\n})\r\n  .then(() =\u003e {\r\n    console.log(\"Audio downloaded successfully! 🔊🎉\");\r\n  })\r\n  .catch((err) =\u003e {\r\n    console.error(\"An error occurred:\", err.message);\r\n  });\r\n```\r\n\r\n\u003c/details\u003e\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003e\u003cb\u003e\u003ci\u003e🎥🔊 Download Video with Audio 🎥🔊\u003c/i\u003e\u003c/b\u003e\u003c/summary\u003e\r\n\r\nTo download videos with audio from YouTube, you can use the `dlAudioVideo` function provided by YouTube-Exec. Here's an example of how to use it:\r\n\r\n```javascript\r\nconst { dlAudioVideo } = require(\"youtube-exec\");\r\n\r\n// Using async/await\r\ntry {\r\n  await dlAudioVideo({\r\n    url: \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\",\r\n    folder: \"downloads\", // optional, default: \"youtube-exec\"\r\n    filename: \"filename\", // optional, default: video title\r\n    resolution: 720, // 144, 240, 360, 480, 720, 1080, 1440, 2160, or 4320; default: 480\r\n  });\r\n  console.log(\"Video downloaded successfully! 🎥🔊🎉\");\r\n} catch (err) {\r\n  console.error(\"An error occurred:\", err.message);\r\n}\r\n\r\n// Using Promises\r\ndlAudioVideo({\r\n  url: \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\",\r\n  folder: \"downloads\", // optional, default: \"youtube-exec\"\r\n  filename: \"filename\", // optional, default: video title\r\n  resolution: 720, // 144, 240, 360, 480, 720, 1080, 1440, 2160, or 4320; default: 480\r\n})\r\n  .then(() =\u003e {\r\n    console.log(\"Video downloaded successfully! 🎥🔊🎉\");\r\n  })\r\n  .catch((err) =\u003e {\r\n    console.error(\"An error occurred:\", err.message);\r\n  });\r\n```\r\n\r\n\u003c/details\u003e\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003e\u003cb\u003e\u003ci\u003e🎥 Download Video w/o Audio 🎥\u003c/i\u003e\u003c/b\u003e\u003c/summary\u003e\r\n\r\nTo download videos without audio from YouTube, you can use the `dlVideo` function provided by YouTube-Exec. Here's an example of how to use it:\r\n\r\n```javascript\r\nconst { dlVideo } = require(\"youtube-exec\");\r\n\r\n// Using async/await\r\ntry {\r\n  await dlVideo({\r\n    url: \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\",\r\n    folder: \"downloads\", // optional, default: \"youtube-exec\"\r\n    filename: \"filename\", // optional, default: video title\r\n    resolution: 720, // 144, 240, 360, 480, 720, 1080, 1440, 2160, or 4320; default: 480\r\n  });\r\n  console.log(\"Video downloaded successfully! 🎥🎉\");\r\n} catch (err) {\r\n  console.error(\"An error occurred:\", err.message);\r\n}\r\n\r\n// Using Promises\r\ndlVideo({\r\n  url: \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\",\r\n  folder: \"downloads\", // optional, default: \"youtube-exec\"\r\n  filename: \"filename\", // optional, default: video title\r\n  resolution: 720, // 144, 240, 360, 480, 720, 1080, 1440, 2160, or 4320; default: 480\r\n})\r\n  .then(() =\u003e {\r\n    console.log(\"Video downloaded successfully! 🎥🎉\");\r\n  })\r\n  .catch((err) =\u003e {\r\n    console.error(\"An error occurred:\", err.message);\r\n  });\r\n```\r\n\r\n\u003c/details\u003e\r\n\r\n\u003ch1 align=\"left\"\u003e\u003cb\u003eUsage (with CLI): 🖥️💻🔧📚\u003c/h1\u003e\r\n\r\n- Install the package globally:\r\n\r\n```bash\r\n$ npm install -g youtube-exec # sudo required for global install\r\n```\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003e\u003cb\u003e\u003ci\u003eDownload Audio 🔊 (with CLI usage)\u003c/i\u003e\u003c/b\u003e\u003c/summary\u003e\r\n\r\nThe \"audio\" command allows you to download audio from a YouTube video. It accepts the following options:\r\n\r\n- `url`: The URL of the YouTube video (required).\r\n- `folder`: The output folder name (optional).\r\n- `filename`: The output filename (excluding extension) (optional, defaults to video title).\r\n- `quality`: The audio quality (\"best\" or \"lowest\") (optional, defaults to \"best\").\r\n\r\nHere's an example of how to use the \"audio\" command:\r\n\r\n```bash\r\n$ yarn global add youtube-exec # needs to be installed globally\r\n$ youtube-exec audio --url \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\" --folder \"downloads\" --filename \"filename\" --quality \"best\"\r\n```\r\n\r\n\u003c/details\u003e\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003e\u003cb\u003e\u003ci\u003eDownload Video with Audio 🎥🔊 (with CLI usage)\u003c/i\u003e\u003c/b\u003e\u003c/summary\u003e\r\n\r\nThe \"video-with-audio\" command allows you to download video with audio from a YouTube video. It accepts the following options:\r\n\r\n- `url`: The URL of the YouTube video (required).\r\n- `folder`: The output folder name (optional).\r\n- `filename`: The output filename (excluding extension) (optional, defaults to video title).\r\n- `resolution`: The video resolution (144, 240, 360, 480, 720, 1080, 1440, 2160, or 4320) (optional, defaults to 480).\r\n\r\nHere's an example of how to use the \"video-with-audio\" command:\r\n\r\n```bash\r\n$ yarn global add youtube-exec # needs to be installed globally\r\n$ youtube-exec video-with-audio --url \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\" --folder \"downloads\" --filename \"filename\" --resolution 720\r\n```\r\n\r\n\u003c/details\u003e\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003e\u003cb\u003e\u003ci\u003eDownload Video without Audio 🎥🔊 (with CLI usage)\u003c/i\u003e\u003c/b\u003e\u003c/summary\u003e\r\n\r\nThe \"video\" command allows you to download video without audio from a YouTube video. It accepts the following options:\r\n\r\n- `url`: The URL of the YouTube video (required).\r\n- `folder`: The output folder name (optional).\r\n- `filename`: The output filename (excluding extension) (optional, defaults to video title).\r\n- `resolution`: The video resolution (144, 240, 360, 480, 720, 1080, 1440, 2160, or 4320) (optional, defaults to 480).\r\n\r\nHere's an example of how to use the \"video\" command:\r\n\r\n```bash\r\n$ yarn global add youtube-exec # needs to be installed globally\r\n$ youtube-exec video --url \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\" --folder \"downloads\" --filename \"filename\" --resolution 720\r\n```\r\n\r\n\u003c/details\u003e\r\n\r\n\u003ch1 align=\"left\"\u003e\u003cb\u003eFeatures: 🎯🔥🌟\u003c/b\u003e\u003c/h1\u003e\r\n\r\n- Extract video and audio details from YouTube effortlessly\r\n- Download audio files from YouTube videos 🎵🔊\r\n- Download videos with audio from YouTube 🎥🔊\r\n- Choose audio quality (best or lowest) 🔊🥇\r\n- Choose video resolution (144, 240, 360, 480, 720, 1080, 1440, 2160, or 4320) 🎥📺\r\n- Simple and intuitive API 🚀\r\n- CLI support for easy downloading 💻⚡\r\n\r\n\u003ch1 align=\"left\"\u003e\u003cb\u003eLicense: 📜🔐\u003c/b\u003e\u003c/h1\u003e\r\n\r\n\u003cp align=\"left\"\u003e\r\n  YouTube-Exec is released under the \u003ca href=\"/LICENSE\"\u003eMIT License\u003c/a\u003e. Feel free to use, modify, and distribute it as you like.\r\n\u003cb\u003eThe MIT License grants you the following permissions:\u003c/b\u003e\r\n\u003c/p\u003e\r\n\r\n- ✅ Permission is hereby granted, free of charge, to any person obtaining a copy of the YouTube-Exec software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\r\n\r\n- 📋 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r\n\r\n- 🚀 The Software is provided \"as is,\" without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the Software or the use or other dealings in the Software.\r\n\r\n- 🔗 The Software may utilize third-party libraries, including but not limited to `youtube-dl-exec` and `fluent-ffmpeg`. Any such libraries are subject to their respective licenses and terms.\r\n\r\n- 🔒 Users of the Software acknowledge that the extraction and downloading of audio and video content from YouTube may be subject to legal restrictions and terms of use imposed by YouTube or other relevant entities. It is the responsibility of the users to comply with all applicable laws, regulations, and terms of use when using the Software.\r\n\r\n- 👥 The Software is intended for personal and non-commercial use only. Any commercial use of the Software requires explicit permission from the authors.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagneum%2Fyoutube-exec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagneum%2Fyoutube-exec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagneum%2Fyoutube-exec/lists"}