Skip to content

DivyanshByte/identify-youtube-shorts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

identify-youtube-shorts

Identify whether a youtube video is shorts or not

Install

npm install identify-youtube-shorts

Usage

checkIfYoutubeShorts(videoID) -> Promise(boolean)

Note: checkIfYoutubeShorts is an async function

Example

const checkIfYoutubeShorts = require('identify-youtube-shorts');
const videoID = "dQw4w9WgXcQ";
async function example(videoID){
    const ifShorts = await checkIfYoutubeShorts(videoID);
    console.log(ifShorts); // true or false according to the video
}
example(videoID)

Errors

The Function will raise a IdentifyYoutubeShortsError Error with the cause.

About

Identify whether a youtube video is shorts or not

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published