Перейти к содержимому

Обзор API

Все встроенные модули и глобальные объекты Elide: модули Node, модули elide:, модуль Python elide, глобальный объект Elide и глобальные объекты Web.

Читать офлайнelide help --lang ru 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

Была ли эта страница полезной?