npm.io
1.0.2 • Published 6 years ago

easy-youtube-info

Licence
MIT
Version
1.0.2
Deps
5
Size
13 kB
Vulns
0
Weekly
0

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.