1.1.8 • Published 2 years ago

youtube-dl-downloader-webpack-plugin v1.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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-webpack-plugin

Usage

const { YoutudeDlDownloaderWebpackPlugin } = require("youtube-dl-downloader-webpack-plugin");

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

module.exports = webpackConfig;

Options and Defaults (Optional)

new YoutudeDlDownloaderWebpackPlugin({
    /**
     * 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;
});
1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.19

2 years ago