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

twitchapi

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twitchapi - npm Package Compare versions

Comparing version 0.2.0 to 0.2.2

2

package.json
{
"name": "twitchapi",
"description": "A lightweight api wrapper for Twitch API",
"version": "0.2.0",
"version": "0.2.2",
"main": "./lib",

@@ -6,0 +6,0 @@ "scripts": {

@@ -32,15 +32,29 @@ ## TwitchAPI Wrapper

import Twitch from 'twitchapi';
var Twitch = require('twitchapi').default;
var TwitchAPI = new Twitch('API_CLIENT_ID');
const TwitchAPI = new Twitch('API_CLIENT_ID');
TwitchAPI.search('streams', { query: 'Halo' })
.then((results) => {
console.log(results);
})
.catch((error) => {
console.log(error);
});
TwitchAPI.Search('streams', { query: 'Halo' })
.then((results) => {
console.log(results);
})
.catch((error) => {
console.log(error);
});
How to use (es6):
import Twitch from 'twitchapi';
const TwitchAPI = new Twitch('API_CLIENT_ID');
TwitchAPI.search('streams', { query: 'Halo' })
.then((results) => {
console.log(results);
})
.catch((error) => {
console.log(error);
});
**You can refer to the [twitch api documention](https://github.com/justintv/Twitch-API/tree/master/v3_resources) for more details on configuration for the routes (ex. query, limit, offset, etc)**
**Better documentation will exist soon.**
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