Convert Youtube URL to MP3 file
JavaScript TypeScript
Switch branches/tags
Latest commit 51b7737 Nov 12, 2017 @selfrefactor selfrefactor update
Permalink
Failed to load latest commit information.
.circleci init Nov 10, 2017
.vscode update Nov 10, 2017
dist update Nov 12, 2017
files init Nov 10, 2017
src update Nov 12, 2017
.gitignore update Nov 12, 2017
LICENSE init Nov 10, 2017
README.md update Nov 12, 2017
package.json update Nov 11, 2017
tsconfig.json init Nov 10, 2017
tsfmt.json init Nov 10, 2017
tslint.json init Nov 10, 2017
yarn.lock update Nov 10, 2017

README.md

Youtube-to-audio

Convert Youtube URL to MP3 file

Requirements

  • FFmpeg
  • Docker

Install

yarn add https://github.com/selfrefactor/youtube-to-audio#0.4.0

Usage

import { youtubeToAudio } from 'youtube-to-audio'

const youtubeURL = 'https://www.youtube.com/watch?v=pLjaBQd3KU4'

youtubeToAudio({
  output: `${process.cwd()}/Misty_Mountain_Hop.mp3`,
  url: youtubeURL,
})
  .then(console.log)