twitch-dl-js
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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

local 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

Readme

Keywords

none

Package Sidebar

Install

npm i twitch-dl-js

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

23 kB

Total Files

8

Last publish

Collaborators

  • niki2k1