twitch-dl-js
v0.0.3
Published
<!-- automd:badges color=yellow -->
Downloads
122
Readme
twitch-dl-js
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