Socket
Book a DemoInstallSign in
Socket

sync-lc-providers

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sync-lc-providers

Node.JS library to fetch info from Youtube, Soundcloud and etc.

latest
npmnpm
Version
2.0.2
Version published
Weekly downloads
2
-77.78%
Maintainers
1
Weekly downloads
 
Created
Source

sync-lc-providers

Node.JS library to fetch info from Youtube, Soundcloud and etc.

Supported providers

  • Coub
  • Soundcloud
  • Vimeo
  • Twitch Streams
  • Youtube (including playlists)
  • Video/audio files

!

Right now, it always downloads a bunch of ffmpeg binaries, so the installation might look stuck for some time.

Usage

const providers = require('sync-lc-providers');

// Get single video info
providers.youtube.info('https://www.youtube.com/watch?v=iNCRfh6dx60').then(info => ...).catch(error => ...);
/**
  Returns promise with video info:
  {
      duration: 195,
      title: 'ChunnHEbyou',
      thumbnail: 'https://i.ytimg.com/vi/iNCRfh6dx60/default.jpg',
      url: 'https://www.youtube.com/watch?v=iNCRfh6dx60',
      type: 'youtube',
      id: 'iNCRfh6dx60',
      disableTiming: false
  }
  
  If there's any errors, rejects the promise.
**/

// Get all videos from playlist

providers.youtubeList.entities('https://www.youtube.com/playlist?list=PLN1mjQ-i1XV5zC72G4NyaFANSeVAIL43U').then(entities => ...).catch(error => ...);
/**
  Returns promise with array of entities in the same format as .info
**/

FAQs

Package last updated on 12 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts