socialmediajs

2.0.5 • Public • Published

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()

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.50latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.50
2.0.40
2.0.30
2.0.20
2.0.00
1.1.30
1.1.20
1.1.13
1.0.00

Package Sidebar

Install

npm i socialmediajs

Weekly Downloads

3

Version

2.0.5

License

MIT

Unpacked Size

14.8 kB

Total Files

10

Last publish

Collaborators

  • dashinja
  • freddyj