Skip to main content

External JavaScript for yt-dlp supporting many runtimes

Project description

yt-dlp-ejs

External JavaScript for yt-dlp supporting many runtimes

Manual Installation

Install ejs into the same environment as yt-dlp:

pip install -U yt-dlp-ejs

Development

While this project does pin its dependencies, it does not use lockfiles or enforce a particular package manager. You may install dependencies using any compatible package manager. If you notice differences between different runtimes' builds please open an issue here.

Build

To build the Python package you need a PEP518 compatible builder. The build hook will automatically invoke deno, bun or node as required.

Alternatively, to only build the JavaScript files you can run the bundle script manually:

# Deno:
deno install
deno task bundle

# Bun:
bun install
bun --bun run bundle

# Node:
npm install
npm run bundle

Tests

First, make sure the project's dependencies are installed and download the player JS files:

# Deno:
deno install
deno run src/yt/solver/test/download.ts

# Bun:
bun install
bun --bun run src/yt/solver/test/download.ts

# Node 22.6+:
npm install
node --experimental-strip-types src/yt/solver/test/download.ts

Then the tests can be run:

# Deno
deno test

# Bun
bun test

# Node
node --test

Licensing

This code is licensed under Unlicense.

An exception to this are the prebuilt wheels, which contain both meriyah and astring, licensed under ISC and MIT, respectively.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yt_dlp_ejs-0.2.0.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yt_dlp_ejs-0.2.0-py3-none-any.whl (53.1 kB view details)

Uploaded Python 3

File details

Details for the file yt_dlp_ejs-0.2.0.tar.gz.

File metadata

  • Download URL: yt_dlp_ejs-0.2.0.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for yt_dlp_ejs-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4b1dbd8155420dcd18ab638eda43b785095704d9f60b13de88e9f7b654e76c3a
MD5 8ac7cac3a73021bd84aafe179676b08a
BLAKE2b-256 d7666db9157e1a04a248f4b234dee62f591201b69e155eda12d1e0a3042c9410

See more details on using hashes here.

Provenance

The following attestation bundles were made for yt_dlp_ejs-0.2.0.tar.gz:

Publisher: release.yml on yt-dlp/ejs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yt_dlp_ejs-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: yt_dlp_ejs-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 53.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for yt_dlp_ejs-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b5e7a5a659da471e0c9aa67ca2591578f1cfd41fa1a7f0f1a84d7dbc0d80442
MD5 1b9efbadd50016a0b63f6541105ffe2d
BLAKE2b-256 d67a3a06255113e85a178a747e8fc3be4bedbccba2f03748f3d27084a1fd10f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for yt_dlp_ejs-0.2.0-py3-none-any.whl:

Publisher: release.yml on yt-dlp/ejs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page