twitch-url-cli

1.0.1 • Public • Published

twitch-url-cli

Get a single m3u8 URL of a Twitch stream. You can then for example use that URL for open-pip.

Installation

$ npm install --global twitch-url-cli

Setup

You need a Twitch Client ID. See here here how to set up one.

There are 3 possibilities how to set the client id. The app will look for a client id in this order:

Flag

$ twitch-url --client-id=abcdefghijklmno12345

Environment variable

$ TWITCH_CLIENT_ID=abcdefghijklmno12345 twitch-url

Dotfile (recommended)

If you would like to store the client ID permanently.

echo "abcdefghijklmno12345" > ~/.twitch-client-id

CLI

$ twitch-url --help
 
    Usage
      $ twitch-url [channel]
 
    Options
      --client-id  Twitch API Client ID
 
    Examples
      $ twitch-url Sacriel
      http://video-edge-c686c4.lhr03.hls.ttvnw.net/v0/....index-live.m3u8

License

MIT © Jonny Burger

/twitch-url-cli/

    Package Sidebar

    Install

    npm i twitch-url-cli

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • jonny