1.0.2 • Published 5 years ago
easy-youtube-info v1.0.2
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
orfalse
size
- The amount of results that should be obtained, being read only ifmoreResults
is 'true'.number
youtubeInfo.getSongByID('song id', options)
lang
- The 2 character symbol of a language. Default isen
.
youtubeInfo.getSongByURL('song id', options)
lang
- The 2 character symbol of a language. Default isen
.