1.0.5 • Published 2 years ago

ymp3d v1.0.5

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

ymp3d

YouTube mp3 downloader

uses fluet-ffmpeg, ytld-core, https-proxy-agent

ffmpeg is not needed as ffmpeg-installer is used

install

npm install ymp3d

usage

const Ymp3 = require('ymp3d')

const y = new Ymp3()

y.Download('https://www.youtube.com/watch?v=vBGRz6s-1UA')
    .then(videoInfo => console.log(videoInfo))
    .catch(e => console.log(e))

y.on('start',  function (commandLine) {
    console.log(commandLine)
})

y.on('progress',  function (progress) {
    console.log(progress)
})

y.on('finish',  function (fileName) {
    console.log(fileName)
})

y.on('error', function (e) {
    console.log(e)
})

with params

const y = new Ymp3({
    proxy: 'http://185.131.176.21:8000',
    videoParams: {
        videoFormat: 'mp4',
        quality: 'lowest',
        audioFormat: 'mp3',
    }
})

In order to specify your name/path to the file (default is the title of the video):

y.Download('https://www.youtube.com/watch?v=vBGRz6s-1UA', 'your/path/filename.mp3')
    .then(videoInfo => console.log(videoInfo))
    .catch(e => console.log(e))

test

npm run test
1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago