0.0.3 • Published 8 months ago

twitch-dl-js v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

twitch-dl-js

npm version npm downloads

A modern twitch vod downloading library

!WARNING
This library is in early development. Use at own risk!

Usage

Install package:

# ✨ Auto-detect
npx nypm install twitch-dl-js

# npm
npm install twitch-dl-js

# yarn
yarn add twitch-dl-js

# pnpm
pnpm install twitch-dl-js

# bun
bun install twitch-dl-js

# deno
deno install twitch-dl-js

Import:

ESM (Node.js, Bun)

import { createTwitchApi } from "twitch-dl-js";

CommonJS (Legacy Node.js)

const { createTwitchApi } = require("twitch-dl-js");

CDN (Deno, Bun and Browsers)

import { createTwitchApi } from "https://esm.sh/twitch-dl-js";

const twitchApi = createTwitchApi({
  clientId: "",
  clientSecret: "",
  gqlClientId: "", // this is a public gql client id you can obtain from inspecting browser requests
});

Development

  • Clone this repository
  • Install latest LTS version of Node.js
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run interactive tests using pnpm dev

License

Published under the MIT license. Made by community 💛


🤖 auto updated with automd

0.0.3

8 months ago

0.0.2

8 months ago