easy-youtube-info

Stable version:

Usage no npm install needed!

<script type="module">
  import easyYoutubeInfo from 'https://cdn.skypack.dev/easy-youtube-info';
</script>

README

easy-youtube-info

Install

Stable version:

npm install easy-youtube-info

Unstable version:

npm install AvengerSuicide/easy-youtube-info

Usage

const youtubeInfo = require('easy-youtube-info');

youtubeInfo.searchSong('song name') // i hate u
youtubeInfo.getSongByID('song id') // BiQIc7fG9pA
youtubeInfo.getSongByURL('song url') // https://www.youtube.com/watch?v=BiQIc7fG9pA

Functions Options

youtubeInfo.searchSong('song name', [options])

  • moreResults - If you should get more than one result, should be written with a boolean value. true or false
  • size - The amount of results that should be obtained, being read only if moreResults is 'true'. number

youtubeInfo.getSongByID('song id', [options])

  • lang - The 2 character symbol of a language. Default is en.

youtubeInfo.getSongByURL('song id', [options])

  • lang - The 2 character symbol of a language. Default is en.