const { YoutubeTranscript } = require('youtube-transcript'); YoutubeTranscript.fetchTranscript('0g7qSGQIoxw').then(console.log).catch(console.error);