youtube-dl-installer-ng
Platform independent binary installer of youtube-dl for node projects.
Fork of Kikobeats/youtube-dl-installer which has gone unmaintained for some time.
Install
$ npm install youtube-dl-installer-ng --save
Usage
Require this module in your js application. Doing so will ensure that the latest version of youtube-dl is installed on your system. @todo add where it gets installed
Following that, you can directly invoke the youtube-dl binary using child_process`, or indirectly using a module such as youtube-dl or ytdl-run.
child_process example
'use strict' const promisify = const execFile = const getInfo = async { const args = '--dump-json' '-f' 'best' url const stdout stderr = await return stderr === '' ? JSON : {}} ;async { const payload = await console}
ytdl-run example
'use strict' ;var ytdl2 = ; const opts = '-f' 'bestaudio' 'https://www.youtube.com/watch?v=IgbO5pilG5I'; ytdl stdout