Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

7tv

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

7tv

Unofficial 7TV API Wrapper.

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
43
decreased by-35.82%
Maintainers
1
Weekly downloads
 
Created
Source

💬 7TV API

Unofficial 7TV API Wrapper for Node.js

⚙️ Installation

# With YARN:
yarn add 7tv

# With NPM:
npm install 7tv

📚 Usage

Get user data

const SevenTV = require("../lib");
const api = SevenTV();

async function test () {
    const user = await api.fetchUser("username_here");
    console.log(user); // Returns User (Class)
}

Get user emotes

const SevenTV = require("../lib");
const api = SevenTV();

async function test () {
    const emotes = await api.fetchUserEmotes("username_here");
    console.log(emotes); // Returns array of Emote (Class)
}

📦 Classes

Emote class

{
    "id": String,
    "name": String,
    "owner_id": String,
    "visibility": Number,
    "tags": [String],
    "height": [Number],
    "width": [Number]
}

User class

{
    "id": String,
    "description": String,
    "editor_ids": [String],
    "display_name": String,
    "twitch_id": String,
    "profile_image_url": String,
    "banned": Boolean,
    "role": {
        "name": String,
        "color": String,
        "position": Number
    }
}

❤️

Made with Love by Sammwy, Donate at PayPal

FAQs

Package last updated on 31 May 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc