# simple-twitch-info

> This package is for getting the current livestream information of the twitch streamer or getting the information of the user.

Latest version **1.0.2** (published 2022-08-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install simple-twitch-info
pnpm add simple-twitch-info
yarn add simple-twitch-info
bun add simple-twitch-info
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-08-04 |
| First published | 2022-08-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| Author | cfyt |
| Maintainers | cfyt |
| Keywords | twitch, twitch-api, api, without api key, no api key |

## Links

- npm: https://www.npmjs.com/package/simple-twitch-info
- npm.io page: https://npm.io/package/simple-twitch-info

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.26.1
- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.10

## Recent versions

- 1.0.2 (latest) — 2022-08-04
- 1.0.1 — 2022-08-04
- 1.0.0 — 2022-08-04

## README

#Information
This package is for getting the current livestream information of the twitch streamer or getting the information of the user.

> No reqiures API KEY ;)
#Sample
> Getting stream
```javascript
const simpleTwitch = require("simple-twitch-info");

simpleTwitch.getStream("cFyt").then(console.log).catch(console.error);
```
> Output
``` js
{
  success: true,
  error: null,
  live: true,
  name: 'Eray - Twitch',
  title: 'erkenci',
  embedURL: 'https://player.twitch.tv/?channel=eray&player=facebook&autoplay=true&parent=meta.tag',
  thumbnails: [
    'https://static-cdn.jtvnw.net/previews-ttv/live_user_eray-80x45.jpg',
    'https://static-cdn.jtvnw.net/previews-ttv/live_user_eray-320x180.jpg',
    'https://static-cdn.jtvnw.net/previews-ttv/live_user_eray-640x360.jpg'
  ],
  upload: 2022-08-04T13:01:26.000Z,
  start: 2022-08-04T13:01:26.000Z,
  _end: 2022-08-04T17:01:26.000Z,
  _isLiveBroadcast: true
}
```
> Getting user
```javascript
const simpleTwitch = require("simple-twitch-info");

simpleTwitch.getUser("cFyt").then(console.log).catch(console.error);
```
> Output
``` js
{
  username: 'cfyt',
  displayName: 'cFyt',
  description: 'https://cFyt.me - mail@cFyt.me',
  url: 'https://www.twitch.tv/cfyt',
  image: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2aac32a9-40c1-42cc-8ce0-a94aa744760f-profile_image-300x300.png',
  player: 'https://player.twitch.tv/?channel=cfyt&player=facebook&autoplay=true&parent=meta.tag'
}
```

---
_Source: https://npm.io/package/simple-twitch-info · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
