azot 5.0.0-alpha.8 → 5.0.0-alpha.81
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 +49 -4
- package/dist/api.mjs +1 -0
- package/dist/azot.mjs +21 -0
- package/dist/build-shared-CotrHi2b.mjs +1 -0
- package/dist/build-xIyLkDSD.mjs +1 -0
- package/dist/chunk-BD7HfmW0.mjs +1 -0
- package/dist/config-BQRoM2Lb.mjs +18 -0
- package/dist/context-DUTSWdua.mjs +131 -0
- package/dist/context.mjs +1 -1
- package/dist/detect-DN3DXXYt-BFkCZcXm.mjs +1 -0
- package/dist/dev-DCWlvqJa.mjs +1 -0
- package/dist/dist-B90AnsZY.mjs +481 -0
- package/dist/dist-DdBRlXbk.mjs +29 -0
- package/dist/logger-CrSYk408.mjs +18 -0
- package/dist/open-LYR5RfQA.mjs +2 -0
- package/dist/vitest.mjs +1 -1
- package/manifest_schema.json +234 -0
- package/package.json +43 -72
- package/types/{main.d.ts → api.d.ts} +89 -16
- package/types/extension-v2.d.ts +224 -0
- package/types/extension-v2.type-test.ts +65 -0
- package/types/extension.d.ts +16 -13
- package/types/feedback.d.ts +93 -0
- package/types/manifest.d.ts +61 -0
- package/dist/azt.js +0 -2
- package/dist/azt.mjs +0 -2
- package/dist/chunk-nOFOJqeH.js +0 -1
- package/dist/context-DHWGgddt.mjs +0 -3
- package/dist/context-DtwTOZVR.js +0 -3
- package/dist/context.js +0 -1
- package/dist/main.js +0 -1
- package/dist/main.mjs +0 -1
- package/dist/vitest.js +0 -1
- package/types/input.d.ts +0 -15
package/README.md
CHANGED
|
@@ -1,10 +1,55 @@
|
|
|
1
|
-
# Azot
|
|
1
|
+
# Azot
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Extensions API
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Type definitions for the latest [Azot](https://azot.mov) API.
|
|
6
6
|
|
|
7
|
-
Check [TypeScript
|
|
7
|
+
Check [docs](https://azot.mov/docs/extensions/globals) or [TypeScript definitions](https://npmx.dev/package-code/azot/v/5.0.0-alpha.18/types) to get started with our API. If you want to discover and install extensions, check out [Extension List](https://azot.mov/extensions).
|
|
8
|
+
|
|
9
|
+
## Command-line interface
|
|
10
|
+
|
|
11
|
+
### Quick Start
|
|
12
|
+
|
|
13
|
+
Run following command to install Azot CLI globally ([Node.js](https://nodejs.org/en/download) 24 or higher is required):
|
|
14
|
+
|
|
15
|
+
```shell
|
|
16
|
+
npm install -g azot
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
> Use `azot --help` command to see all available options.
|
|
20
|
+
|
|
21
|
+
Update an npm-installed CLI with `npm install -g azot@latest`. Install a specific
|
|
22
|
+
version with `npm install -g azot@<version>`. The desktop-distributed CLI is updated
|
|
23
|
+
with the desktop application. `azot install` installs extensions; the current CLI
|
|
24
|
+
does not expose `upgrade`, `downgrade`, or `global` commands.
|
|
25
|
+
|
|
26
|
+
Install `premier` extension to download videos from [PREMIER](https://premier.one/)):
|
|
27
|
+
|
|
28
|
+
```shell
|
|
29
|
+
azot install premier
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Download a video from [RUTUBE](https://rutube.ru/) using built-in `rutube` extension:
|
|
33
|
+
|
|
34
|
+
```shell
|
|
35
|
+
azot https://rutube.ru/video/a5d8e842f1b9ea08d9f64cd78d7e722e/
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
```text
|
|
39
|
+
11:19:44.874 INFO Fetching content metadata...
|
|
40
|
+
11:19:45.257 INFO Fetching metadata finished
|
|
41
|
+
11:19:45.289 INFO Как речной транспорт экономит время москвичей? — Москва 24
|
|
42
|
+
11:19:45.290 INFO Content Matched: HTTP Live Streaming
|
|
43
|
+
11:19:45.290 INFO Parsing streams...
|
|
44
|
+
11:19:46.223 INFO Extracted, there are 16 tracks, 8 video tracks, 8 audio tracks
|
|
45
|
+
11:19:46.226 INFO Как речной транспорт экономит время москвичей — Москва 24 (480p, avc) ∙ VIDEO ∙ 848x480 ∙ 485 KiB/s
|
|
46
|
+
✔:19:46.226 INFO Downloading ∙ 21.77 MB
|
|
47
|
+
11:19:52.761 INFO Как речной транспорт экономит время москвичей — Москва 24 (480p, avc) ∙ AUDIO ∙ UND ∙ 44100 kHz ∙ 485 KiB/s
|
|
48
|
+
✔:19:52.762 INFO Downloading ∙ 21.77 MB
|
|
49
|
+
✔:19:57.009 INFO Muxed
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
> You can find downloaded video in `~/Downloads/` directory by default.
|
|
8
53
|
|
|
9
54
|
## Community
|
|
10
55
|
|
package/dist/api.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=(typeof Azot>`u`?void 0:Azot)??(typeof Streamyx>`u`?void 0:Streamyx)??{};e.defineExtension??=e=>e;const t=e.defineExtension,n=e.ExtensionError,r=e.EXTENSION_ERROR_CODES,i=e.version,a=e.sleep,o=e.input,s=e.prompt,c=e.notify,l=e.confirm,u=e.ask,d=e.utils,f=e.browser,p=e.Input,m=e.UrlSource,h=e.CustomPathedSource,g=e.BufferSource,_=e.BlobSource,v=e.ALL_FORMATS,y=e.DASH,b=e.DASH_FORMATS,x=e.HLS,S=e.HLS_FORMATS,C=e.MP4,w=e.MP3;export{v as ALL_FORMATS,_ as BlobSource,g as BufferSource,h as CustomPathedSource,y as DASH,b as DASH_FORMATS,r as EXTENSION_ERROR_CODES,n as ExtensionError,x as HLS,S as HLS_FORMATS,p as Input,w as MP3,C as MP4,m as UrlSource,u as ask,f as browser,l as confirm,e as default,t as defineExtension,o as input,c as notify,s as prompt,a as sleep,d as utils,i as version};
|