@yt-dlx/kit 1.1.0 → 1.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.
@@ -0,0 +1,51 @@
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ import { FFmpegAdapter, MediaEngine, MediaEngineConfig, MediaProcessor, NormalizeOptions, NormalizeResult, ProcessorOptions, ProcessorResult, Resolution } from '@yt-dlx/media';
4
+ import { FragmentOptions, FragmentResult, Fragmenter, MP4BoxAdapter, StreamsEngine, StreamsEngineConfig } from '@yt-dlx/streams';
5
+ import { DownloadOptions, DownloadResult, DownloaderOptions, FormatSelector, MediaDownloader, QualityPreset, SubprocessError, SubprocessErrorData, SubprocessOptions, SubprocessResult, YtDLPDumpedJSON, YtDlpDownloader, YtEngine, YtEngineConfig, asyncSubprocess, cleanSubprocessOutput, spawnStream } from '@yt-dlx/yt';
6
+
7
+ export interface FragmentFromURLOptions {
8
+ qualities: Resolution[];
9
+ output: string;
10
+ }
11
+ declare function fragmentFromURL(url: string, options: FragmentFromURLOptions): Promise<void>;
12
+ export declare const kit: {
13
+ readonly fragmentFromURL: typeof fragmentFromURL;
14
+ };
15
+
16
+ export {
17
+ DownloadOptions,
18
+ DownloadResult,
19
+ DownloaderOptions,
20
+ FFmpegAdapter,
21
+ FormatSelector,
22
+ FragmentOptions,
23
+ FragmentResult,
24
+ Fragmenter,
25
+ MP4BoxAdapter,
26
+ MediaDownloader,
27
+ MediaEngine,
28
+ MediaEngineConfig,
29
+ MediaProcessor,
30
+ NormalizeOptions,
31
+ NormalizeResult,
32
+ ProcessorOptions,
33
+ ProcessorResult,
34
+ QualityPreset,
35
+ Resolution,
36
+ StreamsEngine,
37
+ StreamsEngineConfig,
38
+ SubprocessError,
39
+ SubprocessErrorData,
40
+ SubprocessOptions,
41
+ SubprocessResult,
42
+ YtDLPDumpedJSON,
43
+ YtDlpDownloader,
44
+ YtEngine,
45
+ YtEngineConfig,
46
+ asyncSubprocess,
47
+ cleanSubprocessOutput,
48
+ spawnStream,
49
+ };
50
+
51
+ export {};
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ import{mkdtemp as l,rm as u}from"node:fs/promises";import{tmpdir as d}from"node:os";import{join as f}from"node:path";import{FFmpegAdapter as g,MediaEngine as c}from"@yt-dlx/media";import{MP4BoxAdapter as w,StreamsEngine as y}from"@yt-dlx/streams";import{YtDlpDownloader as x,YtEngine as E}from"@yt-dlx/yt";function a(r){return`${r.reduce((t,e)=>parseInt(e)<t?parseInt(e):t,0)}p`}async function i(r,t){let e=await l(f(d(),"yt-dlx-"));try{let s=new E({adapter:new x}),m=new c({adapter:new g}),p=new y({adapter:new w}),o=await s.download(r,a(t.qualities),{outputTemplate:e});if(!o?.filePath)return;let n=await m.normalize(o.filePath,e,t.qualities);if(!n?.files)return;await p.fragment(n.files,t.output)}finally{await u(e,{recursive:!0,force:!0})}}var z={fragmentFromURL:i};import{YtEngine as Q,YtDlpDownloader as h,SubprocessError as k,asyncSubprocess as q,cleanSubprocessOutput as B,spawnStream as I}from"@yt-dlx/yt";import{MediaEngine as J,FFmpegAdapter as T}from"@yt-dlx/media";import{StreamsEngine as G,MP4BoxAdapter as H}from"@yt-dlx/streams";export{T as FFmpegAdapter,H as MP4BoxAdapter,J as MediaEngine,G as StreamsEngine,k as SubprocessError,h as YtDlpDownloader,Q as YtEngine,q as asyncSubprocess,B as cleanSubprocessOutput,z as kit,I as spawnStream};
package/package.json CHANGED
@@ -1,18 +1,59 @@
1
1
  {
2
2
  "name": "@yt-dlx/kit",
3
- "version": "1.1.0",
4
- "description": "Complete YT-DLX toolkit",
3
+ "version": "1.1.2",
4
+ "description": "A modular TypeScript toolkit for downloading, processing, and streaming media using yt-dlp, FFmpeg, and MP4Box.",
5
+ "keywords": [
6
+ "yt-dlx",
7
+ "yt-dlp",
8
+ "youtube",
9
+ "video",
10
+ "download",
11
+ "media",
12
+ "streaming",
13
+ "dash",
14
+ "ffmpeg",
15
+ "mp4box",
16
+ "typescript"
17
+ ],
18
+ "homepage": "https://github.com/Ubiufboeuf/yt-dlx-kit#readme",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/Ubiufboeuf/yt-dlx-kit.git"
22
+ },
23
+ "bugs": {
24
+ "url": "https://github.com/Ubiufboeuf/yt-dlx-kit/issues"
25
+ },
26
+ "license": "MIT",
27
+ "author": "mAngo",
5
28
  "type": "module",
6
- "main": "./index.js",
7
- "types": "./index.d.ts",
29
+ "main": "./dist/index.js",
30
+ "module": "./dist/index.js",
31
+ "types": "./dist/index.d.ts",
32
+ "exports": {
33
+ ".": {
34
+ "types": "./dist/index.d.ts",
35
+ "import": "./dist/index.js"
36
+ }
37
+ },
38
+ "sideEffects": false,
8
39
  "files": [
9
- "index.js",
10
- "index.d.ts"
40
+ "dist"
11
41
  ],
42
+ "scripts": {
43
+ "start": "bun index.ts",
44
+ "dev": "bun --watch index.ts",
45
+ "build": "bun build.ts && dts-bundle-generator --no-check -o dist/index.d.ts src/index.ts",
46
+ "prepublishOnly": "bun run build"
47
+ },
12
48
  "dependencies": {
13
- "@yt-dlx/media": "0.5.0",
49
+ "@yt-dlx/media": "0.5.1",
14
50
  "@yt-dlx/streams": "0.1.1",
15
51
  "@yt-dlx/yt": "0.4.5"
16
52
  },
17
- "license": "MIT"
53
+ "devDependencies": {
54
+ "@types/bun": "latest",
55
+ "dts-bundle-generator": "9.5.1",
56
+ "typescript": "5"
57
+ },
58
+ "private": false
18
59
  }
package/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from '@yt-dlx/yt'
2
- export * from '@yt-dlx/media'
3
- export * from '@yt-dlx/streams'
package/index.js DELETED
@@ -1,3 +0,0 @@
1
- export * from '@yt-dlx/yt'
2
- export * from '@yt-dlx/media'
3
- export * from '@yt-dlx/streams'