mmmdl
v1.0.1
Published
Multi Media Music Downloader
Downloads
1
Readme
MMMDL
This module provide some package's function. We are supporting YouTube and Spotify right now. This package specialized to Discord.js. (Retun opus and webm) (Spotify isn't stable.)
Example
YouTube Download
const mmmdl = require("mmmdl");
const fs = require("fs");
async function main() {
const stream = await mmmdl.youtube(URL);
stream.pipe(fs.createWriteStream("./music.webm"));
}
main();
Spotify Download
const mmmdl = require("mmmdl");
const fs = require("fs");
async function main() {
const stream = await mmmdl.spotify(URL, Spotify Client ID, Spotify Client Secret);
stream.pipe(fs.createWriteStream("./music.webm"));
}
main();