

Put the following code in index.js: var express = require('express') Īpp. This will download and load the required node_modules into the project directory. Therefore, run npm install ytdl-core express. Next, we need express module and ytdl-core module for our purpose. This will create a package.json file in the project directory. After installing node-js, cd into the project directory and run npm init. To setup a local node server, we first need to have node-js installed on our system. Setup a local node server to facilitate Youtube Video Downloads Click the icon to download the video you like. After installation, the download icon will appear on the video. Video Downloader Professional is an extension where you can download videos from any web.

We will first understand how to setup the node server. The fastest and easiest extension to download videos from any website. There are two parts of this project: running a node server and creating the extension. WriteStream: Streams to which data can be writtenįirst, create a project directory.ReadStream: A readable stream is an abstraction for a source from which data can be consumed.ytdl-core: A node-package for Youtube downloading.The entire code can be referenced at Github.įor those who are new to chrome extension development, please follow this blog to understand development of a simple Chrome Extension. We will take the help of node libraries ytdl-core and express to run a local node server. This extension will have the following capabilities: In this post, we will see how we can download videos from Youtube by making our own simple chrome extension. This article will help readers understand the process and code involved. But there are not any articles on how to make your own simple chrome extension to download from YouTube. Currently there are many chrome extensions available on Chrome to download videos from YouTube.
