untube 2.3.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -1
- package/dist/solver-bundle.d.ts.map +1 -1
- package/dist/solver-bundle.js +2 -1699
- package/dist/solver-bundle.js.map +1 -1
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -1,16 +1,36 @@
|
|
|
1
1
|
# untube
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/untube)
|
|
4
|
+
[](https://www.npmjs.com/package/untube)
|
|
5
|
+
[](https://nodejs.org)
|
|
6
|
+
[](https://www.typescriptlang.org/)
|
|
7
|
+
[](https://socket.dev/npm/package/untube)
|
|
4
8
|
[](LICENSE)
|
|
5
9
|
|
|
6
10
|
A lightweight, extremely fast YouTube video downloader and metadata scraper for Node.js. Ported from the core extraction logic of [yt-dlp](https://github.com/yt-dlp/yt-dlp).
|
|
7
11
|
|
|
8
12
|
## Installation
|
|
9
13
|
|
|
14
|
+
**npm**
|
|
10
15
|
```bash
|
|
11
16
|
npm install untube
|
|
12
17
|
```
|
|
13
18
|
|
|
19
|
+
**pnpm**
|
|
20
|
+
```bash
|
|
21
|
+
pnpm add untube
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
**yarn**
|
|
25
|
+
```bash
|
|
26
|
+
yarn add untube
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**bun**
|
|
30
|
+
```bash
|
|
31
|
+
bun add untube
|
|
32
|
+
```
|
|
33
|
+
|
|
14
34
|
## Quick Start (Downloading Videos)
|
|
15
35
|
|
|
16
36
|
`untube` provides a readable stream that you can pipe anywhere (e.g., to a file, to `fluent-ffmpeg`, or an HTTP response).
|
|
@@ -133,7 +153,7 @@ const sorted = untube.sortFormats(info.formats);
|
|
|
133
153
|
|
|
134
154
|
## YouTube Music Search
|
|
135
155
|
|
|
136
|
-
You can search for songs
|
|
156
|
+
You can search for songs directly from YouTube Music using `untube.ytmusic()`:
|
|
137
157
|
|
|
138
158
|
```typescript
|
|
139
159
|
import untube from 'untube';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solver-bundle.d.ts","sourceRoot":"","sources":["../src/solver-bundle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"solver-bundle.d.ts","sourceRoot":"","sources":["../src/solver-bundle.ts"],"names":[],"mappings":"AAUA,QAAA,IAAI,GAAG;;;CA2Wa,CAAC;AAGrB,eAAe,GAAG,CAAC"}
|