Skip to content

Antfere/youtube-info-lightweight

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

A lightweight version of Philip Klostermann's youtube-info npm module. Similar speed but smaller and fixes certain issues. Only gives the url and title to save on space and fix problems.

This project is in no way affiliated with YouTube.

Installation

Git clone the repository and run "npm i" to download all the node modules from the package.json.

Usage

Just import the index.js from the "video" folder. Then run the imported function with the videoID as input. The function will return a promise so you have to process it with .then() or async/await.

var fetchVideoInfo = require('${path to "video/index.js"}');
fetchVideoInfo(videoId).then(results => console.log(results))
Parameter Meaning
videoId ID of youtube Video

Result

{
  url: `{video url}`,
  name: `{video name}`
}

About

Fetch meta information about YouTube videos

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%