New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

streaming-overlay

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

streaming-overlay

A node module that allows programmers to create custom streaming overlays and addons for their stream!

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

streaming-overlay Back-end for custom streaming overlays and addons. Usable with any streaming service that allows browser sources!

Installation

  • Run npm i twitch-overlay

Example

Index.js

const client = require('twitch-overlay')
const options = {
	"events": ["follow", "donation", "subscription"],
	"token": "yourtoken",
	"webDirectory": __dirname + "/public",
	"port": 8080
}

client.init(options)

/public/index.html

<script src="/socket.io/socket.io.js"></script>
<script>
	let socket = io()
	
	socket.on("alert-follow", (data) => {
		// Do stuff
	})
</script>

Options

{
	"token": String,           		// REQUIRED. Your streamlabs socket api token (https://streamlabs.com/dashboard#/settings/api-settings)
	"events": Array             	// Array with list of strings for different events
	"port": Float               	// The port you want to use
	"webDirectory": String,     	// REQUIRED. String with the directory of your public web folder
	"debug": Boolean            	// Boolean saying if you want to enable debug messages in the console
	"enableTestAlerts": Boolean 	// Enable test alerts from streamlabs
}

Events

List of all the possible events.

  • follow
  • donation
  • topdonation
  • subscriber
  • resub
  • raid
  • merch
  • host
  • bits

FAQs

Package last updated on 23 Apr 2019

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