rahad-all-downloader-v2 2.7.2 → 2.7.3

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 (3) hide show
  1. package/README.md +12 -0
  2. package/package.json +1 -1
  3. package/index.d.ts +0 -212
package/README.md CHANGED
@@ -26,6 +26,18 @@
26
26
 
27
27
  ---
28
28
 
29
+ ## 🎵 TikTok Video Downloader (No Watermark)
30
+
31
+ Looking for a **TikTok video downloader** for Node.js? This package downloads TikTok videos **without watermark** in HD quality, plus MP3 audio extraction — no login, no cookies, no API keys required. One of the fastest `tiktok-downloader` npm packages with automatic fallback across multiple sources.
32
+
33
+ ```js
34
+ const { alldl } = require('rahad-all-downloader-v2');
35
+ const video = await alldl('https://www.tiktok.com/@user/video/123456');
36
+ console.log(video.url); // HD, no watermark
37
+ ```
38
+
39
+ ---
40
+
29
41
  ## ✨ Why This Package?
30
42
 
31
43
  <table>
package/package.json CHANGED
@@ -72,7 +72,7 @@
72
72
  "test": "node test.js",
73
73
  "release": "node release.js"
74
74
  },
75
- "version": "2.7.2",
75
+ "version": "2.7.3",
76
76
  "files": [
77
77
  "index.js",
78
78
  "index.mjs",
package/index.d.ts DELETED
@@ -1,212 +0,0 @@
1
- /**
2
- * TypeScript definitions for rahad-all-downloader-v2
3
- * All-in-one social media video downloader
4
- */
5
-
6
- export interface DownloaderMetadata {
7
- Author: string;
8
- message: string;
9
- Facebook: string;
10
- }
11
-
12
- /** Normalized response — same shape for every platform via `alldl(url)` */
13
- export interface NormalizedData {
14
- title: string;
15
- videoUrl: string;
16
- source: string;
17
- download?: unknown;
18
- }
19
-
20
- export type QualityOption = "best" | "high" | "medium" | "low" | "audio";
21
-
22
- export interface NormalizedResult {
23
- metadata: DownloaderMetadata;
24
- data: NormalizedData;
25
- }
26
-
27
- /** Full platform response — via `alldl.tiktok(url)` etc. */
28
- export interface PlatformData {
29
- title?: string;
30
- author?: string;
31
- thumbnail?: string | null;
32
- download?: unknown;
33
- stats?: unknown;
34
- [key: string]: unknown;
35
- }
36
-
37
- export interface PlatformResult {
38
- metadata: DownloaderMetadata;
39
- success: boolean;
40
- source: string;
41
- data: PlatformData;
42
- }
43
-
44
- export interface AllDLOptions {
45
- /** How many times to retry transient failures (with backoff). Default: 2 */
46
- retries?: number;
47
- /** Video quality: 'best' (default) | 'high' | 'medium' | 'low' | 'audio' */
48
- quality?: QualityOption;
49
- }
50
-
51
- export interface DownloadProgress {
52
- done: number;
53
- total: number | null;
54
- percent: number | null;
55
- }
56
-
57
- export interface DownloadOptions extends AllDLOptions {
58
- /** Progress callback: { done, total, percent } */
59
- onProgress?: (p: DownloadProgress) => void;
60
- /** Download audio only as .mp3 (TikTok music, Kwai audio, YouTube audio) */
61
- audioOnly?: boolean;
62
- /** Resume interrupted download from partial file (Range header) */
63
- resume?: boolean;
64
- /** Embed ID3 title+cover in MP3. Default: true */
65
- tag?: boolean;
66
- }
67
-
68
- /** YouTube playlist item */
69
- export interface PlaylistVideo {
70
- videoId: string;
71
- title: string;
72
- url: string;
73
- }
74
-
75
- export interface PlaylistResult {
76
- title: string;
77
- count: number;
78
- videos: PlaylistVideo[];
79
- }
80
-
81
- export interface SubtitleResult {
82
- lang: string;
83
- srt: string;
84
- path?: string;
85
- }
86
-
87
- export interface DownloadResult {
88
- path: string;
89
- bytes: number;
90
- title: string;
91
- source: string;
92
- videoUrl: string;
93
- }
94
-
95
- export interface BatchOptions extends AllDLOptions {
96
- /** Max concurrent requests. Default: 3 */
97
- concurrency?: number;
98
- /** Called when each item completes */
99
- onItem?: (item: BatchItem, index: number) => void;
100
- }
101
-
102
- export type BatchItem =
103
- | ({ success: true; url: string } & NormalizedResult)
104
- | { success: false; url: string; error: string };
105
-
106
- export interface XOptions {
107
- /** Quality preference, e.g. '720p' — selects the closest quality at or below it */
108
- quality?: string;
109
- }
110
-
111
- /** Metadata-only result — via `alldl.info(url)` (no download) */
112
- export interface InfoAuthor {
113
- name: string | null;
114
- url: string | null;
115
- }
116
-
117
- export interface InfoResult {
118
- /** Detected site: 'tiktok' | 'youtube' | 'vimeo' | 'facebook' | 'instagram' | 'pinterest' | 'dailymotion' | ... | 'unknown' */
119
- site: string;
120
- url: string;
121
- title: string | null;
122
- author: InfoAuthor;
123
- /** Seconds, or null when not available. TikTok thumbnails are signed CDN URLs — they expire */
124
- thumbnail: string | null;
125
- duration: number | null;
126
- description: string | null;
127
- }
128
-
129
- export interface InfoOptions {
130
- /** For Facebook/Instagram oEmbed: 'APP_ID|APP_SECRET' (user-supplied, never hardcode) */
131
- appToken?: string;
132
- }
133
-
134
- export interface AllDL {
135
- /** Auto-detect platform from URL → normalized `{ title, videoUrl, source }` */
136
- (url: string, opts?: AllDLOptions): Promise<NormalizedResult>;
137
- /**
138
- * Resolves and saves to disk as a file.
139
- * If `dest` is a folder, the filename is auto-generated from the title;
140
- * if it is a file path, that path is used as-is.
141
- */
142
- download(url: string, dest: string, opts?: DownloadOptions): Promise<DownloadResult>;
143
- /**
144
- * Batch many URLs at once — never throws.
145
- * Each item resolves to `{ success, ... }` or `{ success: false, error }`.
146
- */
147
- batch(urls: string[], opts?: BatchOptions): Promise<BatchItem[]>;
148
- /** TikTok — full data: no-watermark/watermark/music + stats */
149
- tiktok(url: string): Promise<PlatformResult>;
150
- /** Facebook — full data: HD/SD direct links */
151
- fb(url: string): Promise<PlatformResult>;
152
- /** Instagram — reels/posts/IGTV, no login needed */
153
- insta(url: string): Promise<PlatformResult>;
154
- /** Likee — direct video */
155
- likee(url: string): Promise<PlatformResult>;
156
- /** Threads — video & image extraction */
157
- threads(url: string): Promise<PlatformResult>;
158
- /** Pinterest — direct video */
159
- pinterest(url: string): Promise<PlatformResult>;
160
- /** YouTube — direct stream URL */
161
- youtube(url: string): Promise<PlatformResult>;
162
- /** CapCut — template video */
163
- capcut(url: string): Promise<PlatformResult>;
164
- /** Kwai — direct video */
165
- kwai(url: string): Promise<PlatformResult>;
166
- /** Dailymotion — HLS master stream */
167
- dailymotion(url: string): Promise<PlatformResult>;
168
- /** Vimeo — direct progressive MP4 */
169
- vimeo(url: string): Promise<PlatformResult>;
170
- /** X (Twitter) — multi-quality video & photo */
171
- x(url: string, opts?: XOptions): Promise<PlatformResult>;
172
- /** X (Twitter) — alias of `x` */
173
- twitter(url: string, opts?: XOptions): Promise<PlatformResult>;
174
- /** Snapchat — spotlight/stories video & photo */
175
- snapchat(url: string): Promise<PlatformResult>;
176
- /**
177
- * Metadata only — no download. Returns
178
- * `{ site, url, title, author:{name,url}, thumbnail, duration, description }`.
179
- * Unavailable fields are `null`, never fabricated data.
180
- * For Facebook/Instagram, pass `{ appToken: 'APP_ID|APP_SECRET' }`.
181
- */
182
- info(url: string, opts?: InfoOptions): Promise<InfoResult>;
183
- /**
184
- * Set the HTTP timeout (ms) for API resolve calls. Default 20000.
185
- * Slow network er jonno barano jay: `alldl.setTimeout(45000)`.
186
- */
187
- setTimeout(ms: number): number;
188
- /** Current HTTP timeout (ms) for API resolve calls. */
189
- getTimeout(): number;
190
- /**
191
- * Proxy for all requests (geo-block / IP ban bypass).
192
- * `alldl.setProxy('http://user:pass@host:port')` — `alldl.setProxy(null)` to disable.
193
- */
194
- setProxy(proxyUrl: string | null): unknown;
195
- /**
196
- * Start self-hosted downloader API + web UI.
197
- * `const server = await alldl.serve({ port: 3000, apiKey: 'SECRET' })`
198
- */
199
- serve(opts?: { port?: number; apiKey?: string }): Promise<unknown>;
200
- /**
201
- * YouTube playlist → `{ title, count, videos: [{ videoId, title, url }] }`.
202
- * Pair with `batch()` + `download()` to grab the whole playlist.
203
- */
204
- playlist(url: string, opts?: { limit?: number }): Promise<PlaylistResult>;
205
- /**
206
- * YouTube subtitles → `{ lang, srt, path? }`.
207
- * Pass `{ dest }` to save as .srt file, `{ lang: 'bn' }` for Bangla.
208
- */
209
- subtitles(url: string, opts?: { lang?: string; dest?: string }): Promise<SubtitleResult>;
210
- }
211
-
212
- export declare const alldl: AllDL;