Перейти до вмісту

Огляд API

Усі вбудовані модулі та глобальні об'єкти Elide: модулі Node, модулі elide:, модуль Python elide, глобальний об'єкт Elide і глобальні об'єкти Web.

Читати офлайнelide help --lang uk api-overview

На цій сторінці

Коду на JavaScript доступні глобальний об’єкт Elide, вбудовані модулі Node, модулі баз даних elide: і глобальні об’єкти Web. Результати наборів тестів: Матриця сумісності. Для програм на Java і Kotlin див. API для JVM.

Вбудовані модулі

Модулі Node розв’язуються з префіксом node: і без нього. Кожна сторінка посилається на оригінальну документацію, перелічує відмінності й закінчується згенерованим довідником: експорти, нереалізовані частини і результати наборів тестів.

Module Page Status Suite
assert, assert/strict node:assert Partial 53.8% of 13
async_hooks node:async_hooks Partial 80.0% of 45
buffer node:buffer Full 90.3% of 62
child_process node:child_process Full Not measured
console node:console Partial 95.2% of 21
crypto node:crypto Partial 84.8% of 112
dgram node:dgram Full Not measured
diagnostics_channel node:diagnostics_channel Full 62.7% of 67
dns, dns/promises node:dns Full 85.0% of 20
domain node:domain Full Not measured
events node:events Full 89.5% of 38
fs, fs/promises node:fs Partial 93.2% of 264
http, https node:http Partial Not measured
module node:module Partial 86.5% of 52
net node:net Partial Not measured
os node:os Full Not measured
path, path/posix, path/win32 node:path Full 100.0% of 16
perf_hooks node:perf_hooks Partial Not measured
querystring node:querystring Full Not measured
readline, readline/promises, tty node:readline Partial Not measured
stream, stream/promises, stream/web, stream/consumers, stream/iter node:stream Partial 90.3% of 238
test node:test Partial Not measured
timers, timers/promises node:timers Full 94.7% of 57
url node:url Full 95.2% of 42
util, util/types node:util Partial 50.0% of 18
v8 node:v8 Partial Not measured
vm node:vm Full 84.2% of 95
worker_threads node:worker_threads Partial 82.0% of 128
zlib, zlib/iter node:zlib Partial Not measured
process process Partial 88.5% of 87

Web globals

Globals Page Status Suite
fetch, Headers, Request, Response and 3 more Fetch Full 57.9% of 2,511
ReadableStream, ReadableStreamDefaultReader, ReadableStreamDefaultController, ReadableStreamBYOBReader and 9 more Streams Full Not measured
CompressionStream, DecompressionStream Compression streams Full Not measured
URL, URLSearchParams URL Full 96.0% of 9,046
URLPattern URLPattern Full Not measured
TextEncoderStream, TextDecoderStream, TextDecoder, TextEncoder Encoding Full 99.4% of 14,266
crypto, SubtleCrypto Web Crypto Full Not measured
Event, CustomEvent, EventTarget, AbortController and 1 more Events and AbortSignal Full Not measured
setTimeout, clearTimeout, setInterval, clearInterval and 2 more Timers Full Not measured
MessageEvent, MessageChannel, MessagePort Messaging Partial Not measured
navigator, WorkerNavigator WorkerNavigator Full Not measured
performance, PerformanceEntry, PerformanceMark, PerformanceMeasure and 3 more Performance Full Not measured
DOMException, PromiseRejectionEvent Other globals Full Not measured

Інші вбудовані модулі

Модуль Статус
cluster Недоступний
constants Недоступний
http2 Недоступний
inspector Недоступний
punycode encode, decode, toASCII і toUnicode
repl Недоступний
sea Недоступний
sqlite SQLite
string_decoder StringDecoder, зокрема розбитий багатобайтовий ввід і base64
sys Завантажується; це той самий об’єкт, що й util
test/reporters Недоступний
tls Клієнтські з’єднання через tls.connect; createServer викидає виняток, rootCertificates порожній
trace_events Недоступний
wasi Недоступний

Імпорт недоступного модуля викидає ERR_UNKNOWN_BUILTIN_MODULE.

Псевдоніми elide:

elide:X повертає той самий об’єкт модуля, що й node:X. Модуля elide:compression немає; використовуйте node:zlib або CompressionStream.

Модулі Elide

Модуль Експорти Сторінка
elide:sqlite, elide:postgres, elide:mysql Database Бази даних
elide:cel compile Модуль CEL
elide:telemetry flush, status, enter, wrapTracer, release elide:telemetry

Коду на Python доступний модуль elide для виклику JavaScript і обміну функціями.

Телеметрія

Модуль Сторінка
@opentelemetry/api, @opentelemetry/api-logs, @opentelemetry/api/experimental Вбудовані, якщо не встановлені; OpenTelemetry у JavaScript
elide:telemetry flush, status, enter, wrapTracer, release; elide:telemetry
opentelemetry для Python, elide.telemetry OpenTelemetry у Python

Чи була ця сторінка корисною?