npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

twitch-info

v1.1.1

Published

npx cli utility to quickly look up twitch information

Downloads

2

Readme

twitch-info

npx twitch-info <command> [options]
Quickly look up information from the Twitch API using the CLI tool.
Usage: twitch-info <command> [options]

Commands:
  twitch-info clips             Gets clip information by clip ID, broadcaster
                                ID, or game ID.
  twitch-info games             Gets clip information by clip ID, broadcaster
                                ID, or game ID.
  twitch-info streams-metadata  Gets information about active streams. Streams
                                are returned sorted by number of current
                                viewers, in descending order. Across multiple
                                pages of results, there may be duplicate or
                                missing streams, as viewers join and leave
                                streams.
  twitch-info streams           Gets information about active streams. Streams
                                are returned sorted by number of current
                                viewers, in descending order. Across multiple
                                pages of results, there may be duplicate or
                                missing streams, as viewers join and leave
                                streams.
  twitch-info top-games         Gets games sorted by number of current viewers
                                on Twitch, most popular first.
  twitch-info users-extensions  Gets games sorted by number of current viewers
                                on Twitch, most popular first.
  twitch-info user-follows      Gets information on follow relationships between
                                two Twitch users. Information returned is sorted
                                in order, most recent follow first. This can
                                return information like “who is lirik
                                following,” “who is following lirik,” or “is
                                user X following user Y.
  twitch-info users             Gets information about one or more specified
                                Twitch users.
  twitch-info videos            Gets games sorted by number of current viewers
                                on Twitch, most popular first.

Options:
  --version   Show version number                                      [boolean]
  -h, --help  Show help                                                [boolean]

Examples:
  twitch-info users -l talk2megooseman  return the users information
  twitch-info user-follows --help       print user-follows command information

Clips

Gets clip information by clip ID, broadcaster ID, or game ID.

Options:
  --version             Show version number                            [boolean]
  --broadcaster_id, -b  Get by broadcaster ID                           [string]
  --clip_id, -c         Get specific clip ID                            [string]
  --game_id, -g         Get by game ID                                  [string]
  --first, -f           Maximum number of objects to return. Maximum: 100.
                        Default: 20.                      [string] [default: 20]
  -h, --help            Show help                                      [boolean]

Games

Gets clip information by clip ID, broadcaster ID, or game ID.

Options:
  --version   Show version number                                      [boolean]
  --id        Game ID                                                   [string]
  --name, -n  Game name. The name must be an exact match. For instance,
              “Pokemon” will not return a list of Pokemon games; instead, query
              the specific Pokemon game(s) in which you are interested. [string]
  -h, --help  Show help                                                [boolean]

Streams Metadata

Gets information about active streams. Streams are returned sorted by number of
current viewers, in descending order. Across multiple pages of results, there
may be duplicate or missing streams, as viewers join and leave streams.

Options:
  --version      Show version number                                   [boolean]
  --language     Stream language.                                       [string]
  --user_login   Returns streams broadcast by specified login name.     [string]
  --user_id      Returns data by specified user IDs.                    [string]
  --game_id, -g  Get by game ID                                         [string]
  --before, -b   Cursor for backward pagination: tells the server where to start
                 fetching the next set of results, in a multi-page response.
                                                                        [string]
  --after, -a    Cursor for forward pagination: tells the server where to start
                 fetching the next set of results, in a multi-page response.
                                                                        [string]
  --first, -f    Maximum number of objects to return. Maximum: 100. Default: 20.
                                                          [string] [default: 20]
  -h, --help     Show help                                             [boolean]

Streams

Gets information about active streams. Streams are returned sorted by number of
current viewers, in descending order. Across multiple pages of results, there
may be duplicate or missing streams, as viewers join and leave streams.

Options:
  --version         Show version number                                [boolean]
  --language        Stream language.                                    [string]
  --user_login, -l  Returns streams broadcast by specified login name.  [string]
  --user_id         Returns data by specified user IDs.                 [string]
  --game_id, -g     Get by game ID                                      [string]
  --before, -b      Cursor for backward pagination: tells the server where to
                    start fetching the next set of results, in a multi-page
                    response.                                           [string]
  --after, -a       Cursor for forward pagination: tells the server where to
                    start fetching the next set of results, in a multi-page
                    response.                                           [string]
  --first, -f       Maximum number of objects to return. Maximum: 100. Default:
                    20.                                   [string] [default: 20]
  -h, --help        Show help                                          [boolean]

Top Games

Gets games sorted by number of current viewers on Twitch, most popular first.

Options:
  --version     Show version number                                    [boolean]
  --before, -b  Cursor for backward pagination: tells the server where to start
                fetching the next set of results, in a multi-page response.
                                                                        [string]
  --after, -a   Cursor for forward pagination: tells the server where to start
                fetching the next set of results, in a multi-page response.
                                                                        [string]
  --first, -f   Maximum number of objects to return. Maximum: 100. Default: 20.
                                                          [string] [default: 20]
  -h, --help    Show help                                              [boolean]

Users Activated Extensions

twitch-info users-extensions

Gets games sorted by number of current viewers on Twitch, most popular first.

Options:
  --version   Show version number                                      [boolean]
  --user_id   Returns data by specified user IDs.                       [string]
  -h, --help  Show help                                                [boolean]

User Follows

twitch-info user-follows

Gets information on follow relationships between two Twitch users. Information
returned is sorted in order, most recent follow first. This can return
information like “who is lirik following,” “who is following lirik,” or “is user
X following user Y.

Options:
  --version    Show version number                                     [boolean]
  --from_id    User ID. The request returns information about users who are
               being followed by the from_id user.                      [string]
  --to_id      User ID. The request returns information about users who are
               following the to_id user.                                [string]
  --after, -a  Cursor for forward pagination: tells the server where to start
               fetching the next set of results, in a multi-page response.
                                                                        [string]
  --first, -f  Maximum number of objects to return. Maximum: 100. Default: 20.
                                                          [string] [default: 20]
  -h, --help   Show help                                               [boolean]

User

twitch-info users

Gets information about one or more specified Twitch users.

Options:
  --version        Show version number                                 [boolean]
  --id             User ID                                              [string]
  --login, -l, -u  User login name                                      [string]
  -h, --help       Show help                                           [boolean]

Videos

twitch-info videos

Gets games sorted by number of current viewers on Twitch, most popular first.

Options:
  --version       Show version number                                  [boolean]
  --id            ID of the video being queried.                        [string]
  --game_id, -g   Get by game ID                                        [string]
  --user_id       Returns data by specified user IDs.                   [string]
  --before, -b    Cursor for backward pagination: tells the server where to
                  start fetching the next set of results, in a multi-page
                  response.                                             [string]
  --after, -a     Cursor for forward pagination: tells the server where to start
                  fetching the next set of results, in a multi-page response.
                                                                        [string]
  --first, -f     Maximum number of objects to return. Maximum: 100. Default:
                  20.                                     [string] [default: 20]
  --language, -l  Language of the video being queried.                  [string]
  --period, -p    Period during which the video was created. Valid values:
                  "all", "day", "week", "month". Default: "all".        [string]
  --sort, -s      Sort order of the videos. Valid values: "time", "trending",
                  "views". Default: "time".                             [string]
  --type, -t      Type of video. Valid values: "all", "upload", "archive",
                  "highlight". Default: "all".                          [string]
  -h, --help      Show help                                            [boolean]