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 CHANGED
@@ -1,10 +1,55 @@
1
- # Azot API
1
+ # Azot
2
2
 
3
- Type definitions for the latest [Azot](https://azot.so) API.
3
+ ## Extensions API
4
4
 
5
- ## Getting Started
5
+ Type definitions for the latest [Azot](https://azot.mov) API.
6
6
 
7
- Check [TypeScript interfaces](https://www.npmjs.com/package/azot?activeTab=code) to get started with our API. If you want to discover and install extensions, check out [Extension List](https://github.com/azot-labs/extensions/blob/main/extensions.json).
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};