JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q20238F
  • License MIT

The eassiest way to grab info from the YouTube API and Twitch Tracker

Package Exports

  • socialmediajs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (socialmediajs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Social Media JS

This is an NPM module that grabs data from different API's and make's it readeble

YouTube API

Promise Example


const { YouTube } = require('socialmediajs');

__Test__();

function __Test__() {
  YouTube("UCBUVGPsJzc1U8SECMgBaMFw", "YOUR_API_KEY").then(data => {
    console.log(data);
  });
}

Async/await Example

const { YouTube } = require('socialmediajs');

async function __test(channelID, apiKey) {
    const data = await YouTube(channelID, apiKey);
    console.log(data)
    return data
}

__test('A CHANNEL ID', ' YOUR YOUTUBE API KEY');

Twitch Scrapper

Promise Example

const { Twitch } = require('socialmediajs')

function ybicaStats() {
Twitch('ybicanoooobov').then((results) => {
  console.log(results)
})
}

ybicaStats()

Async/Await Example

const { Twitch } = require('socialmediajs')

async function ybicaStats() {
  const results = await Twitch('ybicanoooobov')
  console.log(results)
}

ybicaStats()