const ytdl = require("ytdl-core"); ytdl.getInfo(process.argv[2], (err, info) => { //let stream = ytdl(process.argv[2], { // quality: "highestaudio" //filter: 'audioonly', //}); console.log(info); });