@derimalec/ytdl-to-mp3
v1.2.4
Published
Youtube videos download to mp3
Downloads
9
Maintainers
Readme
Youtube to mp3
A node library to download and convert youtube videos to mp3
How to use:
- Install the package npm i @derimalec/ytdl-to-mp3
- Import it as: import { ytDownloader } from "@derimalec/ytdl-to-mp3";
- Use it as: const {path} = await ytDownloader.download('some youtube url', 'somepath');
Example:
import { ytDownloader } from "@derimalec/ytdl-to-mp3";
const downloadSong = async () => {
// download returns the full path, with the song name + mp3 extension on it.
const { path } = await ytDownloader.download(
"https://www.youtube.com/dummy_youtube_link",
"your path goes here",
"highestaudio"
);
};
downloadSong();