This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

youtube-dl-downloader-wepback-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.18 • Public • Published

youtube-dl downloader plugin for webpack

npm MIT License

A webpack plugin that downloads youtube-dl

Why

  • Auto install the latest or specific youtube-dl version available as webpack plugin.

Installation

npm install --save-dev youtube-dl-downloader-wepback-plugin

Usage

const { YoutubeDlDownloaderPlugin } = require("youtube-dl-downloader-wepback-plugin");

const webpackConfig = {
  plugins: [
    new YoutubeDlDownloaderPlugin({
      from: 'website',
      to: 'lib'
    })
  ],
};

module.exports = webpackConfig;

Options and Defaults (Optional)

new YoutubeDlDownloaderPlugin({
    /**
     * A platform of youtube-dl ('win32', 'auto' or 'not')
     *
     * default: ['win32', 'unix']
     */
    platform?: string[] | string;

    /**
     * 'github' or 'website'; server where would like to download
     *
     * default: 'website'
     */
    from?: DownloadFrom;

    /**
     * When {from: 'github'}, a version to download youtube-dl from github releases
     *
     * default: [lastest version]
     */
    version?: string;

    /**
     * A version to download youtube-dl
     */
    to: string;

    /**
     * use EnableDefine
     *
     * default: false
     */
    enableDefine?: boolean;
});

Package Sidebar

Install

npm i youtube-dl-downloader-wepback-plugin

Weekly Downloads

2

Version

1.0.18

License

MIT

Unpacked Size

20.7 kB

Total Files

15

Last publish

Collaborators

  • 2jun0