Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

youtubedl-core

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

youtubedl-core

YouTube video downloader by Eternity Community.

  • 4.11.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
55K
increased by3.58%
Maintainers
1
Weekly downloads
 
Created
Source

youtubedl-core

A lightweight and easy-to-use library for downloading videos from YouTube, powered by YouTube-DL and developed by the Eternity Community.

Installation

To install youtubedl-core, simply run the following command:

npm install youtubedl-core

Usage

To download a video, import the youtubedl-core library and use the download function:

const youtubedl = require('youtubedl-core');

youtubedl.download('https://www.youtube.com/watch?v=dQw4w9WgXcQ')
  .then(info => {
    console.log('Download complete');
  })
  .catch(err => {
    console.error(err);
  });

You can also pass options to the download function, such as specifying the video quality or format:

const youtubedl = require('youtubedl-core');

const options = {
  quality: 'highest',
  format: 'mp4'
};

youtubedl.download('https://www.youtube.com/watch?v=dQw4w9WgXcQ', options)
  .then(info => {
    console.log('Download complete');
  })
  .catch(err => {
    console.error(err);
  });

For more information on the available options, see the YouTube-DL documentation.

About Eternity Community

youtubedl-core is developed by the Eternity Community, a group of developers dedicated to creating high-quality open source software. We believe that software should be accessible to everyone, and strive to make our projects as user-friendly and easy-to-use as possible.

If you're interested in contributing to youtubedl-core or any of our other projects, please visit our GitHub organization and check out the contribution guidelines. We welcome all contributions, big and small!

Thanks To

Keywords

FAQs

Package last updated on 29 Jul 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc