untube 2.1.0 → 2.1.2

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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -82,12 +82,12 @@ untube('videoId', { format: 'highestaudio' });
82
82
  ```
83
83
 
84
84
  ### `mode` (Streaming Behavior)
85
- By default, `untube` uses **parallel** downloading to bypass YouTube bandwidth throttling.
85
+ By default, `untube` uses **parallel** downloading to maximize speed.
86
86
 
87
87
  | Mode | Characteristics | Best for |
88
88
  | :--- | :--- | :--- |
89
- | `'parallel'` (Default) | Incredibly fast. Downloads chunks concurrently into a temp file and streams the result. Emits `progress` events. | Downloading files, massive scrapers. |
90
- | `'sequential'` | Pure RAM streaming. Slower (throttled by YouTube). No temp files used. Start-up time is instant. | Real-time audio playback. |
89
+ | `'parallel'` (Default) | Incredibly fast. Downloads chunks concurrently into a temp file and streams the result. Emits `progress` events. | Downloading large files, maximum throughput. |
90
+ | `'sequential'` | Pure RAM streaming. Instant start-up. No temp files used. | Real-time audio playback, Discord bots. |
91
91
 
92
92
  ```typescript
93
93
  // Use sequential mode for instant start-up time
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "untube",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "Lightweight YouTube video metadata and streaming URL extractor for Node.js. Features automatic signature decryption (n-parameter), proxy support, and cookie management. Ported from yt-dlp.",
5
5
  "keywords": [
6
6
  "youtube",
@@ -38,7 +38,7 @@
38
38
  "scripts": {
39
39
  "build": "npx tsc",
40
40
  "update-solver": "node scripts/update-solver.js",
41
- "prepublishOnly": "npm run build"
41
+ "prepare": "npm run build"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^25.5.0",